aboutsummaryrefslogtreecommitdiff
path: root/examples/rp/src
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/rp/src
parenta44abaf7e4562fa5393087fd845bf0d02141325b (diff)
BufferedUart initialization
This change modifies UART initialization throughout Embassy to take pins before interrupts. Related to #1304.
Diffstat (limited to 'examples/rp/src')
-rw-r--r--examples/rp/src/bin/uart_buffered_split.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rp/src/bin/uart_buffered_split.rs b/examples/rp/src/bin/uart_buffered_split.rs
index 468d2b61a..da7e94139 100644
--- a/examples/rp/src/bin/uart_buffered_split.rs
+++ b/examples/rp/src/bin/uart_buffered_split.rs
@@ -30,7 +30,7 @@ async fn main(spawner: Spawner) {
30 let tx_buf = &mut TX_BUF.init([0; 16])[..]; 30 let tx_buf = &mut TX_BUF.init([0; 16])[..];
31 static RX_BUF: StaticCell<[u8; 16]> = StaticCell::new(); 31 static RX_BUF: StaticCell<[u8; 16]> = StaticCell::new();
32 let rx_buf = &mut RX_BUF.init([0; 16])[..]; 32 let rx_buf = &mut RX_BUF.init([0; 16])[..];
33 let uart = BufferedUart::new(uart, Irqs, tx_pin, rx_pin, tx_buf, rx_buf, Config::default()); 33 let uart = BufferedUart::new(uart, tx_pin, rx_pin, Irqs, tx_buf, rx_buf, Config::default());
34 let (mut tx, rx) = uart.split(); 34 let (mut tx, rx) = uart.split();
35 35
36 unwrap!(spawner.spawn(reader(rx))); 36 unwrap!(spawner.spawn(reader(rx)));