aboutsummaryrefslogtreecommitdiff
path: root/embassy-nxp/src/lib.rs
diff options
context:
space:
mode:
authorRoi Bachynskyi <[email protected]>2025-08-02 20:45:01 +0300
committerRoi Bachynskyi <[email protected]>2025-08-12 08:49:49 +0300
commitf3f819fc37720c1cbe24834df255cae9bfe68eb9 (patch)
tree0e953e4129603079fdc2dda8f7a92c0639ced1c8 /embassy-nxp/src/lib.rs
parentcae93c5a27d596c9371b81c896598ce1a7fdaa83 (diff)
feat: lpc55 blocking usart added
Diffstat (limited to 'embassy-nxp/src/lib.rs')
-rw-r--r--embassy-nxp/src/lib.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/embassy-nxp/src/lib.rs b/embassy-nxp/src/lib.rs
index b2e910f7e..3fcb14b7e 100644
--- a/embassy-nxp/src/lib.rs
+++ b/embassy-nxp/src/lib.rs
@@ -6,6 +6,8 @@ pub(crate) mod fmt;
6pub mod gpio; 6pub mod gpio;
7#[cfg(feature = "lpc55")] 7#[cfg(feature = "lpc55")]
8pub mod pint; 8pub mod pint;
9#[cfg(feature = "lpc55")]
10pub mod usart;
9 11
10#[cfg(feature = "_time_driver")] 12#[cfg(feature = "_time_driver")]
11#[cfg_attr(feature = "time-driver-pit", path = "time_driver/pit.rs")] 13#[cfg_attr(feature = "time-driver-pit", path = "time_driver/pit.rs")]
@@ -115,3 +117,21 @@ impl Iterator for BitIter {
115 } 117 }
116 } 118 }
117} 119}
120
121trait SealedMode {}
122
123/// UART mode.
124#[allow(private_bounds)]
125pub trait Mode: SealedMode {}
126
127macro_rules! impl_mode {
128 ($name:ident) => {
129 impl SealedMode for $name {}
130 impl Mode for $name {}
131 };
132}
133
134/// Blocking mode.
135pub struct Blocking;
136
137impl_mode!(Blocking);