diff options
| author | Caleb Jamison <[email protected]> | 2024-10-09 11:44:58 -0400 |
|---|---|---|
| committer | Caleb Jamison <[email protected]> | 2024-10-09 11:44:58 -0400 |
| commit | c7f7728eb164edea2f8041d2511a976f9ebc17ca (patch) | |
| tree | 3cfd74e9fcb0cdb01d6c95b56c916ae0470f7df0 /embassy-rp/src/pio_programs/uart.rs | |
| parent | fc978c2ee9dda07b9fe7113e2aa0f2d3fb33fd1b (diff) | |
cargo +nightly fmt
Diffstat (limited to 'embassy-rp/src/pio_programs/uart.rs')
| -rw-r--r-- | embassy-rp/src/pio_programs/uart.rs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/embassy-rp/src/pio_programs/uart.rs b/embassy-rp/src/pio_programs/uart.rs index f4b3b204e..c643f1063 100644 --- a/embassy-rp/src/pio_programs/uart.rs +++ b/embassy-rp/src/pio_programs/uart.rs | |||
| @@ -1,17 +1,16 @@ | |||
| 1 | //! Pio backed uart drivers | 1 | //! Pio backed uart drivers |
| 2 | 2 | ||
| 3 | use crate::{ | ||
| 4 | clocks::clk_sys_freq, | ||
| 5 | gpio::Level, | ||
| 6 | pio::{ | ||
| 7 | Common, Config, Direction as PioDirection, FifoJoin, Instance, LoadedProgram, PioPin, ShiftDirection, | ||
| 8 | StateMachine, | ||
| 9 | }, | ||
| 10 | }; | ||
| 11 | use core::convert::Infallible; | 3 | use core::convert::Infallible; |
| 4 | |||
| 12 | use embedded_io_async::{ErrorType, Read, Write}; | 5 | use embedded_io_async::{ErrorType, Read, Write}; |
| 13 | use fixed::traits::ToFixed; | 6 | use fixed::traits::ToFixed; |
| 14 | 7 | ||
| 8 | use crate::clocks::clk_sys_freq; | ||
| 9 | use crate::gpio::Level; | ||
| 10 | use crate::pio::{ | ||
| 11 | Common, Config, Direction as PioDirection, FifoJoin, Instance, LoadedProgram, PioPin, ShiftDirection, StateMachine, | ||
| 12 | }; | ||
| 13 | |||
| 15 | /// This struct represents a uart tx program loaded into pio instruction memory. | 14 | /// This struct represents a uart tx program loaded into pio instruction memory. |
| 16 | pub struct PioUartTxProgram<'a, PIO: Instance> { | 15 | pub struct PioUartTxProgram<'a, PIO: Instance> { |
| 17 | prg: LoadedProgram<'a, PIO>, | 16 | prg: LoadedProgram<'a, PIO>, |
