diff options
| author | Brian Schwind <[email protected]> | 2025-09-29 21:11:09 +0900 |
|---|---|---|
| committer | Brian Schwind <[email protected]> | 2025-09-29 21:19:30 +0900 |
| commit | 1fe05cfedbcfb35dba3bee3ed6b7f4f293e9bb78 (patch) | |
| tree | 13953b45361ad6b68d36fe6b88ee29b56f97bfee /tests/stm32 | |
| parent | 5fc197529e4260196f99e8d6341a37d7e623c9f6 (diff) | |
Make the Qei struct own the channel 1 and 2 pins
Diffstat (limited to 'tests/stm32')
| -rw-r--r-- | tests/stm32/src/bin/afio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stm32/src/bin/afio.rs b/tests/stm32/src/bin/afio.rs index cc44dc59c..356c39443 100644 --- a/tests/stm32/src/bin/afio.rs +++ b/tests/stm32/src/bin/afio.rs | |||
| @@ -260,8 +260,8 @@ async fn main(_spawner: Spawner) { | |||
| 260 | reset_afio_registers(); | 260 | reset_afio_registers(); |
| 261 | Qei::new::<AfioRemap<1>>( | 261 | Qei::new::<AfioRemap<1>>( |
| 262 | p.TIM1.reborrow(), | 262 | p.TIM1.reborrow(), |
| 263 | QeiPin::new(p.PA8.reborrow()), | 263 | p.PA8.reborrow(), |
| 264 | QeiPin::new(p.PA9.reborrow()), | 264 | p.PA9.reborrow(), |
| 265 | ); | 265 | ); |
| 266 | defmt::assert_eq!(AFIO.mapr().read().tim1_remap(), 1); | 266 | defmt::assert_eq!(AFIO.mapr().read().tim1_remap(), 1); |
| 267 | } | 267 | } |
