diff options
| author | JanKomarekNXP <[email protected]> | 2025-12-01 18:07:58 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-01 18:07:58 +0100 |
| commit | 717346f21a4cf4993c2a1f046e26b6bf647d89cb (patch) | |
| tree | 81dcbf726769eac5726796b340542d661debe407 /src/i2c/controller.rs | |
| parent | 3b239cb6de22b7bb8c2d87defb3205294653be7a (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 'src/i2c/controller.rs')
0 files changed, 0 insertions, 0 deletions
