aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h7/src/bin
diff options
context:
space:
mode:
authorhuntc <[email protected]>2022-06-12 15:16:56 +1000
committerhuntc <[email protected]>2022-06-12 15:16:56 +1000
commit99d19c7dcf077cdd06113bf013d6a458289b1ecb (patch)
tree21344af53a0823f4949b25dbd2d9011ffe316f8a /examples/stm32h7/src/bin
parentdb344c2bda55bd0352a43720788185cc4d3a420e (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.rs2
-rw-r--r--examples/stm32h7/src/bin/usart_split.rs2
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
9use panic_probe as _; 9use panic_probe as _;
10 10
11use embassy::channel::Signal; 11use embassy::channel::signal::Signal;
12use embassy::executor::Spawner; 12use embassy::executor::Spawner;
13use embassy::time::{Duration, Timer}; 13use 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 @@
5use defmt::*; 5use defmt::*;
6use defmt_rtt as _; // global logger 6use defmt_rtt as _; // global logger
7use embassy::blocking_mutex::raw::ThreadModeRawMutex; 7use embassy::blocking_mutex::raw::ThreadModeRawMutex;
8use embassy::channel::channel::Channel; 8use embassy::channel::mpmc::Channel;
9use embassy::executor::Spawner; 9use embassy::executor::Spawner;
10use embassy_stm32::dma::NoDma; 10use embassy_stm32::dma::NoDma;
11use embassy_stm32::{ 11use embassy_stm32::{