diff options
| author | huntc <[email protected]> | 2022-06-12 15:16:56 +1000 |
|---|---|---|
| committer | huntc <[email protected]> | 2022-06-12 15:16:56 +1000 |
| commit | 99d19c7dcf077cdd06113bf013d6a458289b1ecb (patch) | |
| tree | 21344af53a0823f4949b25dbd2d9011ffe316f8a /examples/stm32h7/src/bin | |
| parent | db344c2bda55bd0352a43720788185cc4d3a420e (diff) | |
Rename channel to mpmc
I've renamed the channel module for the MPMC as mpmc. There was a previous debate about this, but I feel that the strategy here avoids importing `channel::channel`. The change leaves `signal::Signal`, but I think that's ok. It is all a bit subjective of course. The bottom line for me is that I really like the term mpmc - it means something to me and aligns with broader naming e.g. in Tokio.
Diffstat (limited to 'examples/stm32h7/src/bin')
| -rw-r--r-- | examples/stm32h7/src/bin/signal.rs | 2 | ||||
| -rw-r--r-- | examples/stm32h7/src/bin/usart_split.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32h7/src/bin/signal.rs b/examples/stm32h7/src/bin/signal.rs index d2531b2ba..c63b2836c 100644 --- a/examples/stm32h7/src/bin/signal.rs +++ b/examples/stm32h7/src/bin/signal.rs | |||
| @@ -8,7 +8,7 @@ use defmt_rtt as _; | |||
| 8 | 8 | ||
| 9 | use panic_probe as _; | 9 | use panic_probe as _; |
| 10 | 10 | ||
| 11 | use embassy::channel::Signal; | 11 | use embassy::channel::signal::Signal; |
| 12 | use embassy::executor::Spawner; | 12 | use embassy::executor::Spawner; |
| 13 | use embassy::time::{Duration, Timer}; | 13 | use embassy::time::{Duration, Timer}; |
| 14 | 14 | ||
diff --git a/examples/stm32h7/src/bin/usart_split.rs b/examples/stm32h7/src/bin/usart_split.rs index 40a7c3e44..eb3f9578c 100644 --- a/examples/stm32h7/src/bin/usart_split.rs +++ b/examples/stm32h7/src/bin/usart_split.rs | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | use defmt::*; | 5 | use defmt::*; |
| 6 | use defmt_rtt as _; // global logger | 6 | use defmt_rtt as _; // global logger |
| 7 | use embassy::blocking_mutex::raw::ThreadModeRawMutex; | 7 | use embassy::blocking_mutex::raw::ThreadModeRawMutex; |
| 8 | use embassy::channel::channel::Channel; | 8 | use embassy::channel::mpmc::Channel; |
| 9 | use embassy::executor::Spawner; | 9 | use embassy::executor::Spawner; |
| 10 | use embassy_stm32::dma::NoDma; | 10 | use embassy_stm32::dma::NoDma; |
| 11 | use embassy_stm32::{ | 11 | use embassy_stm32::{ |
