diff options
| author | i509VCB <[email protected]> | 2025-06-23 23:15:09 -0500 |
|---|---|---|
| committer | i509VCB <[email protected]> | 2025-07-06 17:40:10 -0500 |
| commit | e57dffafa5723931dd529afe8e22cba0c9ea09f0 (patch) | |
| tree | ecfad1783ad50f72520d770c6c5fb114d8981932 /tests/mspm0/src/bin/uart.rs | |
| parent | 8b65f9cf0f4095080297bf5c3e09334296da8076 (diff) | |
mspm0: add dma driver
Diffstat (limited to 'tests/mspm0/src/bin/uart.rs')
| -rw-r--r-- | tests/mspm0/src/bin/uart.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/mspm0/src/bin/uart.rs b/tests/mspm0/src/bin/uart.rs index 458129d44..916ce0d4b 100644 --- a/tests/mspm0/src/bin/uart.rs +++ b/tests/mspm0/src/bin/uart.rs | |||
| @@ -4,6 +4,9 @@ | |||
| 4 | #[cfg(feature = "mspm0g3507")] | 4 | #[cfg(feature = "mspm0g3507")] |
| 5 | teleprobe_meta::target!(b"lp-mspm0g3507"); | 5 | teleprobe_meta::target!(b"lp-mspm0g3507"); |
| 6 | 6 | ||
| 7 | #[cfg(feature = "mspm0g3519")] | ||
| 8 | teleprobe_meta::target!(b"lp-mspm0g3519"); | ||
| 9 | |||
| 7 | use defmt::{assert_eq, unwrap, *}; | 10 | use defmt::{assert_eq, unwrap, *}; |
| 8 | use embassy_executor::Spawner; | 11 | use embassy_executor::Spawner; |
| 9 | use embassy_mspm0::mode::Blocking; | 12 | use embassy_mspm0::mode::Blocking; |
| @@ -23,7 +26,7 @@ async fn main(_spawner: Spawner) { | |||
| 23 | 26 | ||
| 24 | // TODO: Allow creating a looped-back UART (so pins are not needed). | 27 | // TODO: Allow creating a looped-back UART (so pins are not needed). |
| 25 | // Do not select default UART since the virtual COM port is attached to UART0. | 28 | // Do not select default UART since the virtual COM port is attached to UART0. |
| 26 | #[cfg(feature = "mspm0g3507")] | 29 | #[cfg(any(feature = "mspm0g3507", feature = "mspm0g3519"))] |
| 27 | let (mut tx, mut rx, mut uart) = (p.PA8, p.PA9, p.UART1); | 30 | let (mut tx, mut rx, mut uart) = (p.PA8, p.PA9, p.UART1); |
| 28 | 31 | ||
| 29 | const MFCLK_BUAD_RATES: &[u32] = &[1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200]; | 32 | const MFCLK_BUAD_RATES: &[u32] = &[1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200]; |
