aboutsummaryrefslogtreecommitdiff
path: root/embassy-nxp
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-nxp')
-rw-r--r--embassy-nxp/Cargo.toml2
-rw-r--r--embassy-nxp/src/usart/lpc55.rs9
2 files changed, 10 insertions, 1 deletions
diff --git a/embassy-nxp/Cargo.toml b/embassy-nxp/Cargo.toml
index b78c26c77..d5ef38531 100644
--- a/embassy-nxp/Cargo.toml
+++ b/embassy-nxp/Cargo.toml
@@ -35,7 +35,7 @@ log = { version = "0.4.27", optional = true }
35embassy-time = { version = "0.5.0", path = "../embassy-time", optional = true } 35embassy-time = { version = "0.5.0", path = "../embassy-time", optional = true }
36embassy-time-driver = { version = "0.2.1", path = "../embassy-time-driver", optional = true } 36embassy-time-driver = { version = "0.2.1", path = "../embassy-time-driver", optional = true }
37embassy-time-queue-utils = { version = "0.3.0", path = "../embassy-time-queue-utils", optional = true } 37embassy-time-queue-utils = { version = "0.3.0", path = "../embassy-time-queue-utils", optional = true }
38embedded-io = "0.6.1" 38embedded-io = { version = "0.7.1" }
39embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } 39embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] }
40## Chip dependencies 40## Chip dependencies
41nxp-pac = { version = "0.1.0", optional = true, git = "https://github.com/i509VCB/nxp-pac", rev = "af5122e1cbe1483833c5d2e5af96b26a34ed5d62"} 41nxp-pac = { version = "0.1.0", optional = true, git = "https://github.com/i509VCB/nxp-pac", rev = "af5122e1cbe1483833c5d2e5af96b26a34ed5d62"}
diff --git a/embassy-nxp/src/usart/lpc55.rs b/embassy-nxp/src/usart/lpc55.rs
index d77f08fd8..319e29054 100644
--- a/embassy-nxp/src/usart/lpc55.rs
+++ b/embassy-nxp/src/usart/lpc55.rs
@@ -51,6 +51,15 @@ impl embedded_io::Error for Error {
51 } 51 }
52 } 52 }
53} 53}
54
55impl core::fmt::Display for Error {
56 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
57 core::fmt::Debug::fmt(self, f)
58 }
59}
60
61impl core::error::Error for Error {}
62
54/// Word length. 63/// Word length.
55#[derive(Clone, Copy, PartialEq, Eq, Debug)] 64#[derive(Clone, Copy, PartialEq, Eq, Debug)]
56pub enum DataBits { 65pub enum DataBits {