aboutsummaryrefslogtreecommitdiff
path: root/tests/mspm0/src/bin/uart.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mspm0/src/bin/uart.rs')
-rw-r--r--tests/mspm0/src/bin/uart.rs5
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")]
5teleprobe_meta::target!(b"lp-mspm0g3507"); 5teleprobe_meta::target!(b"lp-mspm0g3507");
6 6
7#[cfg(feature = "mspm0g3519")]
8teleprobe_meta::target!(b"lp-mspm0g3519");
9
7use defmt::{assert_eq, unwrap, *}; 10use defmt::{assert_eq, unwrap, *};
8use embassy_executor::Spawner; 11use embassy_executor::Spawner;
9use embassy_mspm0::mode::Blocking; 12use 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];