diff options
| author | michel <[email protected]> | 2024-10-10 15:14:53 +0200 |
|---|---|---|
| committer | michel <[email protected]> | 2024-11-29 17:58:35 +0100 |
| commit | 31da5155e840d97e432cf2fa06c6fa4c2a19bf9a (patch) | |
| tree | 50b2745e97e0305fb06afcfdf3a649529a2d0d3a /examples/stm32l0/src/bin/tsc_blocking.rs | |
| parent | a5b34a7980edaba5d8de05c68a48972dd9239f75 (diff) | |
Refactor TSC module: Remove redundant 'Tsc' prefixes for improved naming consistency
Diffstat (limited to 'examples/stm32l0/src/bin/tsc_blocking.rs')
| -rw-r--r-- | examples/stm32l0/src/bin/tsc_blocking.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32l0/src/bin/tsc_blocking.rs b/examples/stm32l0/src/bin/tsc_blocking.rs index 65203925c..e1f24639b 100644 --- a/examples/stm32l0/src/bin/tsc_blocking.rs +++ b/examples/stm32l0/src/bin/tsc_blocking.rs | |||
| @@ -69,8 +69,8 @@ async fn main(_spawner: embassy_executor::Spawner) { | |||
| 69 | }; | 69 | }; |
| 70 | 70 | ||
| 71 | let mut g1: PinGroupWithRoles<peripherals::TSC, G1> = PinGroupWithRoles::default(); | 71 | let mut g1: PinGroupWithRoles<peripherals::TSC, G1> = PinGroupWithRoles::default(); |
| 72 | g1.set_io1::<tsc_pin_roles::Sample>(context.PA0); | 72 | g1.set_io1::<tsc::pin_roles::Sample>(context.PA0); |
| 73 | let tsc_sensor = g1.set_io2::<tsc_pin_roles::Channel>(context.PA1); | 73 | let tsc_sensor = g1.set_io2::<tsc::pin_roles::Channel>(context.PA1); |
| 74 | 74 | ||
| 75 | let pin_groups: PinGroups<peripherals::TSC> = PinGroups { | 75 | let pin_groups: PinGroups<peripherals::TSC> = PinGroups { |
| 76 | g1: Some(g1.pin_group), | 76 | g1: Some(g1.pin_group), |
| @@ -123,7 +123,7 @@ const MAX_GROUP_STATUS_READ_ATTEMPTS: usize = 10; | |||
| 123 | // attempt to read group status and delay when still ongoing | 123 | // attempt to read group status and delay when still ongoing |
| 124 | async fn read_touch_value( | 124 | async fn read_touch_value( |
| 125 | touch_controller: &mut tsc::Tsc<'_, peripherals::TSC, mode::Blocking>, | 125 | touch_controller: &mut tsc::Tsc<'_, peripherals::TSC, mode::Blocking>, |
| 126 | sensor_pin: TscIOPin, | 126 | sensor_pin: tsc::IOPin, |
| 127 | ) -> Option<u16> { | 127 | ) -> Option<u16> { |
| 128 | for _ in 0..MAX_GROUP_STATUS_READ_ATTEMPTS { | 128 | for _ in 0..MAX_GROUP_STATUS_READ_ATTEMPTS { |
| 129 | match touch_controller.group_get_status(sensor_pin.group()) { | 129 | match touch_controller.group_get_status(sensor_pin.group()) { |
