diff options
| author | Ben Gamari <[email protected]> | 2021-09-29 00:31:42 -0400 |
|---|---|---|
| committer | Ben Gamari <[email protected]> | 2021-09-29 00:32:40 -0400 |
| commit | 006bbea51afeeb01fac8c7adb3ae0ff549d4ecf0 (patch) | |
| tree | de6fcb6723eb424fdcd364f4e2e20535ade78a6c | |
| parent | 5a38cc214079aed4c8778bd210c1ece2fe64fdf7 (diff) | |
stm32/adc: Add IN0 channel
| -rw-r--r-- | embassy-stm32/src/adc/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-stm32/src/adc/mod.rs b/embassy-stm32/src/adc/mod.rs index af98d1777..f292d0208 100644 --- a/embassy-stm32/src/adc/mod.rs +++ b/embassy-stm32/src/adc/mod.rs | |||
| @@ -72,6 +72,9 @@ macro_rules! impl_pin { | |||
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | crate::pac::peripheral_pins!( | 74 | crate::pac::peripheral_pins!( |
| 75 | ($inst:ident, adc, ADC, $pin:ident, IN0) => { | ||
| 76 | impl_pin!($inst, $pin, 0); | ||
| 77 | }; | ||
| 75 | ($inst:ident, adc, ADC, $pin:ident, IN1) => { | 78 | ($inst:ident, adc, ADC, $pin:ident, IN1) => { |
| 76 | impl_pin!($inst, $pin, 1); | 79 | impl_pin!($inst, $pin, 1); |
| 77 | }; | 80 | }; |
