aboutsummaryrefslogtreecommitdiff
path: root/examples/src/bin/lpuart_polling.rs
diff options
context:
space:
mode:
authorJanKomarekNXP <[email protected]>2025-12-01 18:07:58 +0100
committerGitHub <[email protected]>2025-12-01 18:07:58 +0100
commit717346f21a4cf4993c2a1f046e26b6bf647d89cb (patch)
tree81dcbf726769eac5726796b340542d661debe407 /examples/src/bin/lpuart_polling.rs
parent3b239cb6de22b7bb8c2d87defb3205294653be7a (diff)
Refactor LPUART driver constructors (#51)
* Refactor LPUART driver constructors - Add new_with_rtscts(), new_with_rts(), new_with_cts() methods - Store RTS/CTS pins in TX/RX structs - Remove enable_tx, enable_rx, enable_rx_rts, enable_tx_cts config fields - Fix typo: msb_firs -> msb_first - Fix write_byte() return type to Result<()> * Update hello example for LPUART driver changes * Refactor buffered LPUART initialization logic - Split new_inner() into init_common() and separate helpers for full-duplex, TX-only, and RX-only - Replace assert!() with proper Error::InvalidArgument returns for empty buffers - Simplify constructor implementations by removing expect() calls
Diffstat (limited to 'examples/src/bin/lpuart_polling.rs')
-rw-r--r--examples/src/bin/lpuart_polling.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/src/bin/lpuart_polling.rs b/examples/src/bin/lpuart_polling.rs
index 9cea418cc..b80668834 100644
--- a/examples/src/bin/lpuart_polling.rs
+++ b/examples/src/bin/lpuart_polling.rs
@@ -19,8 +19,6 @@ async fn main(_spawner: Spawner) {
19 // Create UART configuration 19 // Create UART configuration
20 let config = Config { 20 let config = Config {
21 baudrate_bps: 115_200, 21 baudrate_bps: 115_200,
22 enable_tx: true,
23 enable_rx: true,
24 ..Default::default() 22 ..Default::default()
25 }; 23 };
26 24