mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
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:
commit
40ad87730f
@ -170,7 +170,7 @@ impl<'d, T: Instance> Adc<'d, T> {
|
|||||||
|
|
||||||
fn configure_differential_inputs(&mut self) {
|
fn configure_differential_inputs(&mut self) {
|
||||||
T::regs().difsel().modify(|w| {
|
T::regs().difsel().modify(|w| {
|
||||||
for n in 0..20 {
|
for n in 0..18 {
|
||||||
w.set_difsel(n, Difsel::SINGLEENDED);
|
w.set_difsel(n, Difsel::SINGLEENDED);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user