aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32g0
diff options
context:
space:
mode:
authorMichael Gomez <[email protected]>2025-03-19 20:44:16 -0700
committerMichael Gomez <[email protected]>2025-04-04 21:54:36 -0700
commitf1feedf19031d0c007628569add51ff89ae08447 (patch)
treeb9ecb4c4e809115a9e8cd8a7bc4cae293dbfc713 /examples/stm32g0
parenta44abaf7e4562fa5393087fd845bf0d02141325b (diff)
BufferedUart initialization
This change modifies UART initialization throughout Embassy to take pins before interrupts. Related to #1304.
Diffstat (limited to 'examples/stm32g0')
-rw-r--r--examples/stm32g0/src/bin/usart_buffered.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32g0/src/bin/usart_buffered.rs b/examples/stm32g0/src/bin/usart_buffered.rs
index c097a0c5a..6d9ec8cb4 100644
--- a/examples/stm32g0/src/bin/usart_buffered.rs
+++ b/examples/stm32g0/src/bin/usart_buffered.rs
@@ -21,7 +21,7 @@ async fn main(_spawner: Spawner) {
21 config.baudrate = 115200; 21 config.baudrate = 115200;
22 let mut tx_buf = [0u8; 256]; 22 let mut tx_buf = [0u8; 256];
23 let mut rx_buf = [0u8; 256]; 23 let mut rx_buf = [0u8; 256];
24 let mut usart = BufferedUart::new(p.USART1, Irqs, p.PB7, p.PB6, &mut tx_buf, &mut rx_buf, config).unwrap(); 24 let mut usart = BufferedUart::new(p.USART1, p.PB7, p.PB6, &mut tx_buf, &mut rx_buf, Irqs, config).unwrap();
25 25
26 usart.write_all(b"Hello Embassy World!\r\n").await.unwrap(); 26 usart.write_all(b"Hello Embassy World!\r\n").await.unwrap();
27 info!("wrote Hello, starting echo"); 27 info!("wrote Hello, starting echo");