diff options
Diffstat (limited to 'examples/stm32f3')
| -rw-r--r-- | examples/stm32f3/src/bin/tsc_blocking.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32f3/src/bin/tsc_blocking.rs b/examples/stm32f3/src/bin/tsc_blocking.rs index fa7f718e6..2c33838e5 100644 --- a/examples/stm32f3/src/bin/tsc_blocking.rs +++ b/examples/stm32f3/src/bin/tsc_blocking.rs | |||
| @@ -64,9 +64,9 @@ async fn main(_spawner: embassy_executor::Spawner) { | |||
| 64 | 64 | ||
| 65 | let mut g: PinGroupWithRoles<peripherals::TSC, G4> = PinGroupWithRoles::default(); | 65 | let mut g: PinGroupWithRoles<peripherals::TSC, G4> = PinGroupWithRoles::default(); |
| 66 | // D68 on the STM32F303ZE nucleo-board | 66 | // D68 on the STM32F303ZE nucleo-board |
| 67 | g.set_io2::<tsc_pin_roles::Sample>(context.PA10); | 67 | g.set_io2::<tsc::pin_roles::Sample>(context.PA10); |
| 68 | // D69 on the STM32F303ZE nucleo-board | 68 | // D69 on the STM32F303ZE nucleo-board |
| 69 | let tsc_sensor = g.set_io1::<tsc_pin_roles::Channel>(context.PA9); | 69 | let tsc_sensor = g.set_io1::<tsc::pin_roles::Channel>(context.PA9); |
| 70 | 70 | ||
| 71 | let pin_groups: PinGroups<peripherals::TSC> = PinGroups { | 71 | let pin_groups: PinGroups<peripherals::TSC> = PinGroups { |
| 72 | g4: Some(g.pin_group), | 72 | g4: Some(g.pin_group), |
| @@ -119,7 +119,7 @@ const MAX_GROUP_STATUS_READ_ATTEMPTS: usize = 10; | |||
| 119 | // attempt to read group status and delay when still ongoing | 119 | // attempt to read group status and delay when still ongoing |
| 120 | async fn read_touch_value( | 120 | async fn read_touch_value( |
| 121 | touch_controller: &mut tsc::Tsc<'_, peripherals::TSC, mode::Blocking>, | 121 | touch_controller: &mut tsc::Tsc<'_, peripherals::TSC, mode::Blocking>, |
| 122 | sensor_pin: TscIOPin, | 122 | sensor_pin: tsc::IOPin, |
| 123 | ) -> Option<u16> { | 123 | ) -> Option<u16> { |
| 124 | for _ in 0..MAX_GROUP_STATUS_READ_ATTEMPTS { | 124 | for _ in 0..MAX_GROUP_STATUS_READ_ATTEMPTS { |
| 125 | match touch_controller.group_get_status(sensor_pin.group()) { | 125 | match touch_controller.group_get_status(sensor_pin.group()) { |
