diff options
| author | Michael Gomez <[email protected]> | 2025-03-19 20:44:16 -0700 |
|---|---|---|
| committer | Michael Gomez <[email protected]> | 2025-04-04 21:54:36 -0700 |
| commit | f1feedf19031d0c007628569add51ff89ae08447 (patch) | |
| tree | b9ecb4c4e809115a9e8cd8a7bc4cae293dbfc713 /examples/rp235x/src | |
| parent | a44abaf7e4562fa5393087fd845bf0d02141325b (diff) | |
BufferedUart initialization
This change modifies UART initialization throughout Embassy to take pins
before interrupts.
Related to #1304.
Diffstat (limited to 'examples/rp235x/src')
| -rw-r--r-- | examples/rp235x/src/bin/uart_buffered_split.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rp235x/src/bin/uart_buffered_split.rs b/examples/rp235x/src/bin/uart_buffered_split.rs index 468d2b61a..da7e94139 100644 --- a/examples/rp235x/src/bin/uart_buffered_split.rs +++ b/examples/rp235x/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))); |
