aboutsummaryrefslogtreecommitdiff
path: root/tests/mspm0/src/bin/uart.rs
diff options
context:
space:
mode:
author1-rafael-1 <[email protected]>2025-09-15 20:07:18 +0200
committer1-rafael-1 <[email protected]>2025-09-15 20:07:18 +0200
commit6bb3d2c0720fa082f27d3cdb70f516058497ec87 (patch)
tree5a1e255cff999b00800f203b91a759c720c973e5 /tests/mspm0/src/bin/uart.rs
parenteb685574601d98c44faed9a3534d056199b46e20 (diff)
parent92a6fd2946f2cbb15359290f68aa360953da2ff7 (diff)
Merge branch 'main' into rp2040-rtc-alarm
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];