diff options
| author | Mathias <[email protected]> | 2023-07-01 12:17:12 +0200 |
|---|---|---|
| committer | Mathias <[email protected]> | 2023-07-03 19:33:26 +0200 |
| commit | 60b2f075dcd561cdf3ff069c1cfc5d4177c1a133 (patch) | |
| tree | b3e285258cade6618d6bb14e826fee9cf0bb284a /embassy-sync/src | |
| parent | d372df7ddb381571fd2964e32b486b6d1cd1ad03 (diff) | |
| parent | ba4344429264fa7beb99ab19c09059c2d531716d (diff) | |
Merge branch 'main' of https://github.com/embassy-rs/embassy into embassy-stm32/rcc-rtc-l4
Diffstat (limited to 'embassy-sync/src')
| -rw-r--r-- | embassy-sync/src/fmt.rs | 3 | ||||
| -rw-r--r-- | embassy-sync/src/pipe.rs | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/embassy-sync/src/fmt.rs b/embassy-sync/src/fmt.rs index f8bb0a035..066970813 100644 --- a/embassy-sync/src/fmt.rs +++ b/embassy-sync/src/fmt.rs | |||
| @@ -195,9 +195,6 @@ macro_rules! unwrap { | |||
| 195 | } | 195 | } |
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | #[cfg(feature = "defmt-timestamp-uptime")] | ||
| 199 | defmt::timestamp! {"{=u64:us}", crate::time::Instant::now().as_micros() } | ||
| 200 | |||
| 201 | #[derive(Debug, Copy, Clone, Eq, PartialEq)] | 198 | #[derive(Debug, Copy, Clone, Eq, PartialEq)] |
| 202 | pub struct NoneError; | 199 | pub struct NoneError; |
| 203 | 200 | ||
diff --git a/embassy-sync/src/pipe.rs b/embassy-sync/src/pipe.rs index db6ebb08b..13bf4ef01 100644 --- a/embassy-sync/src/pipe.rs +++ b/embassy-sync/src/pipe.rs | |||
| @@ -282,7 +282,7 @@ where | |||
| 282 | /// returns the amount of bytes written. | 282 | /// returns the amount of bytes written. |
| 283 | /// | 283 | /// |
| 284 | /// If it is not possible to write a nonzero amount of bytes because the pipe's buffer is full, | 284 | /// If it is not possible to write a nonzero amount of bytes because the pipe's buffer is full, |
| 285 | /// this method will wait until it is. See [`try_write`](Self::try_write) for a variant that | 285 | /// this method will wait until it isn't. See [`try_write`](Self::try_write) for a variant that |
| 286 | /// returns an error instead of waiting. | 286 | /// returns an error instead of waiting. |
| 287 | /// | 287 | /// |
| 288 | /// It is not guaranteed that all bytes in the buffer are written, even if there's enough | 288 | /// It is not guaranteed that all bytes in the buffer are written, even if there's enough |
| @@ -319,7 +319,7 @@ where | |||
| 319 | /// returns the amount of bytes read. | 319 | /// returns the amount of bytes read. |
| 320 | /// | 320 | /// |
| 321 | /// If it is not possible to read a nonzero amount of bytes because the pipe's buffer is empty, | 321 | /// If it is not possible to read a nonzero amount of bytes because the pipe's buffer is empty, |
| 322 | /// this method will wait until it is. See [`try_read`](Self::try_read) for a variant that | 322 | /// this method will wait until it isn't. See [`try_read`](Self::try_read) for a variant that |
| 323 | /// returns an error instead of waiting. | 323 | /// returns an error instead of waiting. |
| 324 | /// | 324 | /// |
| 325 | /// It is not guaranteed that all bytes in the buffer are read, even if there's enough | 325 | /// It is not guaranteed that all bytes in the buffer are read, even if there's enough |
