Deprecate *recv* in favor of *receive*
This commit is contained in:
@ -38,11 +38,11 @@ async fn core0_task(p: PIN_0) {
|
||||
let mut pin = Output::new(p, Level::Low);
|
||||
|
||||
CHANNEL0.send(()).await;
|
||||
CHANNEL1.recv().await;
|
||||
CHANNEL1.receive().await;
|
||||
|
||||
pin.set_high();
|
||||
|
||||
CHANNEL1.recv().await;
|
||||
CHANNEL1.receive().await;
|
||||
|
||||
info!("Test OK");
|
||||
cortex_m::asm::bkpt();
|
||||
@ -52,7 +52,7 @@ async fn core0_task(p: PIN_0) {
|
||||
async fn core1_task(p: PIN_1) {
|
||||
info!("CORE1 is running");
|
||||
|
||||
CHANNEL0.recv().await;
|
||||
CHANNEL0.receive().await;
|
||||
|
||||
let mut pin = Input::new(p, Pull::Down);
|
||||
let wait = pin.wait_for_rising_edge();
|
||||
|
@ -34,7 +34,7 @@ async fn core0_task() {
|
||||
info!("CORE0 is running");
|
||||
let ping = true;
|
||||
CHANNEL0.send(ping).await;
|
||||
let pong = CHANNEL1.recv().await;
|
||||
let pong = CHANNEL1.receive().await;
|
||||
assert_eq!(ping, pong);
|
||||
|
||||
info!("Test OK");
|
||||
@ -44,6 +44,6 @@ async fn core0_task() {
|
||||
#[embassy_executor::task]
|
||||
async fn core1_task() {
|
||||
info!("CORE1 is running");
|
||||
let ping = CHANNEL0.recv().await;
|
||||
let ping = CHANNEL0.receive().await;
|
||||
CHANNEL1.send(ping).await;
|
||||
}
|
||||
|
Reference in New Issue
Block a user