aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/nrf52840/src/bin/channel.rs2
-rw-r--r--examples/nrf52840/src/bin/channel_sender_receiver.rs2
-rw-r--r--examples/nrf52840/src/bin/uart_split.rs2
-rw-r--r--examples/rp/src/bin/lora_p2p_send_multicore.rs2
-rw-r--r--examples/rp/src/bin/multicore.rs2
-rw-r--r--examples/stm32f3/src/bin/button_events.rs4
-rw-r--r--examples/stm32h5/src/bin/usart_split.rs2
-rw-r--r--examples/stm32h7/src/bin/usart_split.rs2
8 files changed, 9 insertions, 9 deletions
diff --git a/examples/nrf52840/src/bin/channel.rs b/examples/nrf52840/src/bin/channel.rs
index d782a79e7..bd9c909da 100644
--- a/examples/nrf52840/src/bin/channel.rs
+++ b/examples/nrf52840/src/bin/channel.rs
@@ -35,7 +35,7 @@ async fn main(spawner: Spawner) {
35 unwrap!(spawner.spawn(my_task())); 35 unwrap!(spawner.spawn(my_task()));
36 36
37 loop { 37 loop {
38 match CHANNEL.recv().await { 38 match CHANNEL.receive().await {
39 LedState::On => led.set_high(), 39 LedState::On => led.set_high(),
40 LedState::Off => led.set_low(), 40 LedState::Off => led.set_low(),
41 } 41 }
diff --git a/examples/nrf52840/src/bin/channel_sender_receiver.rs b/examples/nrf52840/src/bin/channel_sender_receiver.rs
index fcccdaed5..ec4f1d800 100644
--- a/examples/nrf52840/src/bin/channel_sender_receiver.rs
+++ b/examples/nrf52840/src/bin/channel_sender_receiver.rs
@@ -33,7 +33,7 @@ async fn recv_task(led: AnyPin, receiver: Receiver<'static, NoopRawMutex, LedSta
33 let mut led = Output::new(led, Level::Low, OutputDrive::Standard); 33 let mut led = Output::new(led, Level::Low, OutputDrive::Standard);
34 34
35 loop { 35 loop {
36 match receiver.recv().await { 36 match receiver.receive().await {
37 LedState::On => led.set_high(), 37 LedState::On => led.set_high(),
38 LedState::Off => led.set_low(), 38 LedState::Off => led.set_low(),
39 } 39 }
diff --git a/examples/nrf52840/src/bin/uart_split.rs b/examples/nrf52840/src/bin/uart_split.rs
index 9979a1d53..b748bfcd8 100644
--- a/examples/nrf52840/src/bin/uart_split.rs
+++ b/examples/nrf52840/src/bin/uart_split.rs
@@ -46,7 +46,7 @@ async fn main(spawner: Spawner) {
46 // back out the buffer we receive from the read 46 // back out the buffer we receive from the read
47 // task. 47 // task.
48 loop { 48 loop {
49 let buf = CHANNEL.recv().await; 49 let buf = CHANNEL.receive().await;
50 info!("writing..."); 50 info!("writing...");
51 unwrap!(tx.write(&buf).await); 51 unwrap!(tx.write(&buf).await);
52 } 52 }
diff --git a/examples/rp/src/bin/lora_p2p_send_multicore.rs b/examples/rp/src/bin/lora_p2p_send_multicore.rs
index 89a62818d..b54cc92f6 100644
--- a/examples/rp/src/bin/lora_p2p_send_multicore.rs
+++ b/examples/rp/src/bin/lora_p2p_send_multicore.rs
@@ -113,7 +113,7 @@ async fn core1_task(
113 }; 113 };
114 114
115 loop { 115 loop {
116 let buffer: [u8; 3] = CHANNEL.recv().await; 116 let buffer: [u8; 3] = CHANNEL.receive().await;
117 match lora.prepare_for_tx(&mdltn_params, 20, false).await { 117 match lora.prepare_for_tx(&mdltn_params, 20, false).await {
118 Ok(()) => {} 118 Ok(()) => {}
119 Err(err) => { 119 Err(err) => {
diff --git a/examples/rp/src/bin/multicore.rs b/examples/rp/src/bin/multicore.rs
index 893b724bf..bf017f6a7 100644
--- a/examples/rp/src/bin/multicore.rs
+++ b/examples/rp/src/bin/multicore.rs
@@ -56,7 +56,7 @@ async fn core0_task() {
56async fn core1_task(mut led: Output<'static, PIN_25>) { 56async fn core1_task(mut led: Output<'static, PIN_25>) {
57 info!("Hello from core 1"); 57 info!("Hello from core 1");
58 loop { 58 loop {
59 match CHANNEL.recv().await { 59 match CHANNEL.receive().await {
60 LedState::On => led.set_high(), 60 LedState::On => led.set_high(),
61 LedState::Off => led.set_low(), 61 LedState::Off => led.set_low(),
62 } 62 }
diff --git a/examples/stm32f3/src/bin/button_events.rs b/examples/stm32f3/src/bin/button_events.rs
index 02c475f66..8e97e85eb 100644
--- a/examples/stm32f3/src/bin/button_events.rs
+++ b/examples/stm32f3/src/bin/button_events.rs
@@ -49,12 +49,12 @@ impl<'a> Leds<'a> {
49 49
50 async fn show(&mut self) { 50 async fn show(&mut self) {
51 self.leds[self.current_led].set_high(); 51 self.leds[self.current_led].set_high();
52 if let Ok(new_message) = with_timeout(Duration::from_millis(500), CHANNEL.recv()).await { 52 if let Ok(new_message) = with_timeout(Duration::from_millis(500), CHANNEL.receive()).await {
53 self.leds[self.current_led].set_low(); 53 self.leds[self.current_led].set_low();
54 self.process_event(new_message).await; 54 self.process_event(new_message).await;
55 } else { 55 } else {
56 self.leds[self.current_led].set_low(); 56 self.leds[self.current_led].set_low();
57 if let Ok(new_message) = with_timeout(Duration::from_millis(200), CHANNEL.recv()).await { 57 if let Ok(new_message) = with_timeout(Duration::from_millis(200), CHANNEL.receive()).await {
58 self.process_event(new_message).await; 58 self.process_event(new_message).await;
59 } 59 }
60 } 60 }
diff --git a/examples/stm32h5/src/bin/usart_split.rs b/examples/stm32h5/src/bin/usart_split.rs
index debd6f454..a6b2e690b 100644
--- a/examples/stm32h5/src/bin/usart_split.rs
+++ b/examples/stm32h5/src/bin/usart_split.rs
@@ -44,7 +44,7 @@ async fn main(spawner: Spawner) -> ! {
44 unwrap!(spawner.spawn(reader(rx))); 44 unwrap!(spawner.spawn(reader(rx)));
45 45
46 loop { 46 loop {
47 let buf = CHANNEL.recv().await; 47 let buf = CHANNEL.receive().await;
48 info!("writing..."); 48 info!("writing...");
49 unwrap!(tx.write(&buf).await); 49 unwrap!(tx.write(&buf).await);
50 } 50 }
diff --git a/examples/stm32h7/src/bin/usart_split.rs b/examples/stm32h7/src/bin/usart_split.rs
index 330d1ce09..aa0753450 100644
--- a/examples/stm32h7/src/bin/usart_split.rs
+++ b/examples/stm32h7/src/bin/usart_split.rs
@@ -44,7 +44,7 @@ async fn main(spawner: Spawner) -> ! {
44 unwrap!(spawner.spawn(reader(rx))); 44 unwrap!(spawner.spawn(reader(rx)));
45 45
46 loop { 46 loop {
47 let buf = CHANNEL.recv().await; 47 let buf = CHANNEL.receive().await;
48 info!("writing..."); 48 info!("writing...");
49 unwrap!(tx.write(&buf).await); 49 unwrap!(tx.write(&buf).await);
50 } 50 }