diff options
| author | liebman <[email protected]> | 2025-10-30 13:07:07 -0700 |
|---|---|---|
| committer | liebman <[email protected]> | 2025-11-03 12:50:41 -0800 |
| commit | 9131cbd9f2b28ff10be64162a3d55d288f27190a (patch) | |
| tree | 3d16a5587d01cb8194c2bd7981af768f771c22f6 /examples/stm32wle5/src/bin/button_exti.rs | |
| parent | 5b70da2256747853ac4f866e60493241ac34bcd3 (diff) | |
examples: : stm32wlex: add i2c example
Diffstat (limited to 'examples/stm32wle5/src/bin/button_exti.rs')
| -rw-r--r-- | examples/stm32wle5/src/bin/button_exti.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/stm32wle5/src/bin/button_exti.rs b/examples/stm32wle5/src/bin/button_exti.rs index dfa391a81..c8083a240 100644 --- a/examples/stm32wle5/src/bin/button_exti.rs +++ b/examples/stm32wle5/src/bin/button_exti.rs | |||
| @@ -65,10 +65,7 @@ async fn async_main(_spawner: Spawner) { | |||
| 65 | { | 65 | { |
| 66 | use embassy_stm32::mode::Blocking; | 66 | use embassy_stm32::mode::Blocking; |
| 67 | use embassy_stm32::usart::Uart; | 67 | use embassy_stm32::usart::Uart; |
| 68 | let mut config = embassy_stm32::usart::Config::default(); | 68 | let config = embassy_stm32::usart::Config::default(); |
| 69 | config.baudrate = 115200; | ||
| 70 | config.assume_noise_free = true; | ||
| 71 | config.detect_previous_overrun = true; | ||
| 72 | let uart = Uart::new_blocking(p.LPUART1, p.PC0, p.PC1, config).expect("failed to configure UART!"); | 69 | let uart = Uart::new_blocking(p.LPUART1, p.PC0, p.PC1, config).expect("failed to configure UART!"); |
| 73 | static SERIAL: StaticCell<Uart<'static, Blocking>> = StaticCell::new(); | 70 | static SERIAL: StaticCell<Uart<'static, Blocking>> = StaticCell::new(); |
| 74 | defmt_serial::defmt_serial(SERIAL.init(uart)); | 71 | defmt_serial::defmt_serial(SERIAL.init(uart)); |
