Merge pull request #2828 from idaniel86/stm32-g4-adc-channel-number-issue

Bug: There are at most 18 channels for the STM32G4 ADCs.
This commit is contained in:
Dario Nieuwenhuis 2024-04-16 18:35:56 +00:00 committed by GitHub
commit 40ad87730f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,7 +170,7 @@ impl<'d, T: Instance> Adc<'d, T> {
fn configure_differential_inputs(&mut self) {
T::regs().difsel().modify(|w| {
for n in 0..20 {
for n in 0..18 {
w.set_difsel(n, Difsel::SINGLEENDED);
}
});