diff options
Diffstat (limited to 'embassy-nxp')
| -rw-r--r-- | embassy-nxp/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-nxp/src/usart/lpc55.rs | 9 |
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 } | |||
| 35 | embassy-time = { version = "0.5.0", path = "../embassy-time", optional = true } | 35 | embassy-time = { version = "0.5.0", path = "../embassy-time", optional = true } |
| 36 | embassy-time-driver = { version = "0.2.1", path = "../embassy-time-driver", optional = true } | 36 | embassy-time-driver = { version = "0.2.1", path = "../embassy-time-driver", optional = true } |
| 37 | embassy-time-queue-utils = { version = "0.3.0", path = "../embassy-time-queue-utils", optional = true } | 37 | embassy-time-queue-utils = { version = "0.3.0", path = "../embassy-time-queue-utils", optional = true } |
| 38 | embedded-io = "0.6.1" | 38 | embedded-io = { version = "0.7.1" } |
| 39 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } | 39 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } |
| 40 | ## Chip dependencies | 40 | ## Chip dependencies |
| 41 | nxp-pac = { version = "0.1.0", optional = true, git = "https://github.com/i509VCB/nxp-pac", rev = "af5122e1cbe1483833c5d2e5af96b26a34ed5d62"} | 41 | nxp-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 | |||
| 55 | impl 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 | |||
| 61 | impl 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)] |
| 56 | pub enum DataBits { | 65 | pub enum DataBits { |
