diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-07-18 12:10:02 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-18 12:10:02 +0000 |
| commit | 024097d833ee84df89c3b85aedeea98a67462a43 (patch) | |
| tree | 3d831527f791970adba3e7b55bb8465562a475e5 /embassy-stm32 | |
| parent | c83d940005c95a3db03f580a6b8672e4286b5496 (diff) | |
| parent | 10a1a27cc3ee9d2b445e86882d89633ec3de5f57 (diff) | |
Merge pull request #3163 from michelrandahl/f303-tsc-example
add TSC examples
Diffstat (limited to 'embassy-stm32')
| -rw-r--r-- | embassy-stm32/src/tsc/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/tsc/mod.rs b/embassy-stm32/src/tsc/mod.rs index 5cb58e918..17240e6bc 100644 --- a/embassy-stm32/src/tsc/mod.rs +++ b/embassy-stm32/src/tsc/mod.rs | |||
| @@ -40,7 +40,7 @@ | |||
| 40 | //! g7.set_io2(context.PE3, PinType::Sample); | 40 | //! g7.set_io2(context.PE3, PinType::Sample); |
| 41 | //! g7.set_io3(context.PE4, PinType::Channel); | 41 | //! g7.set_io3(context.PE4, PinType::Channel); |
| 42 | //! | 42 | //! |
| 43 | //! let mut touch_controller = tsc::Tsc::new( | 43 | //! let mut touch_controller = tsc::Tsc::new_blocking( |
| 44 | //! context.TSC, | 44 | //! context.TSC, |
| 45 | //! Some(g1), | 45 | //! Some(g1), |
| 46 | //! Some(g2), | 46 | //! Some(g2), |
| @@ -188,7 +188,7 @@ pub struct Config { | |||
| 188 | pub spread_spectrum_prescaler: bool, | 188 | pub spread_spectrum_prescaler: bool, |
| 189 | /// Selects AHB clock divider used to generate pulse generator clk | 189 | /// Selects AHB clock divider used to generate pulse generator clk |
| 190 | pub pulse_generator_prescaler: PGPrescalerDivider, | 190 | pub pulse_generator_prescaler: PGPrescalerDivider, |
| 191 | /// Maximum number of charge tranfer pulses that can be generated before error | 191 | /// Maximum number of charge transfer pulses that can be generated before error |
| 192 | pub max_count_value: MaxCount, | 192 | pub max_count_value: MaxCount, |
| 193 | /// Defines config of all IOs when no ongoing acquisition | 193 | /// Defines config of all IOs when no ongoing acquisition |
| 194 | pub io_default_mode: bool, | 194 | pub io_default_mode: bool, |
