aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f3/src
diff options
context:
space:
mode:
authormichel <[email protected]>2024-10-10 15:14:53 +0200
committermichel <[email protected]>2024-11-29 17:58:35 +0100
commit31da5155e840d97e432cf2fa06c6fa4c2a19bf9a (patch)
tree50b2745e97e0305fb06afcfdf3a649529a2d0d3a /examples/stm32f3/src
parenta5b34a7980edaba5d8de05c68a48972dd9239f75 (diff)
Refactor TSC module: Remove redundant 'Tsc' prefixes for improved naming consistency
Diffstat (limited to 'examples/stm32f3/src')
-rw-r--r--examples/stm32f3/src/bin/tsc_blocking.rs6
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
120async fn read_touch_value( 120async 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()) {