F4: Fix compilation for other MCUs
This commit is contained in:
@ -12,10 +12,8 @@ use example_common::{panic, *};
|
||||
use bxcan::filter::Mask32;
|
||||
use cortex_m_rt::entry;
|
||||
use embassy::executor::{task, Executor};
|
||||
use embassy::traits::gpio::*;
|
||||
use embassy::util::Forever;
|
||||
use embassy_stm32f4::{can, interrupt};
|
||||
use futures::pin_mut;
|
||||
use stm32f4xx_hal::prelude::*;
|
||||
use stm32f4xx_hal::{can::Can, stm32};
|
||||
|
||||
@ -35,7 +33,7 @@ async fn run(dp: stm32::Peripherals, _cp: cortex_m::Peripherals) {
|
||||
|
||||
let mut can = can::Can::new(can, interrupt::take!(CAN1_TX), interrupt::take!(CAN1_RX0));
|
||||
|
||||
let frame = can.receive().await;
|
||||
let _frame = can.receive().await;
|
||||
}
|
||||
|
||||
static EXECUTOR: Forever<Executor> = Forever::new();
|
||||
|
@ -43,7 +43,7 @@ async fn run(dp: stm32::Peripherals, _cp: cortex_m::Peripherals) {
|
||||
|
||||
let streams = StreamsTuple::new(dp.DMA2);
|
||||
|
||||
let mut serial = unsafe {
|
||||
let _serial = unsafe {
|
||||
serial::Serial::new(
|
||||
dp.USART1,
|
||||
(streams.7, streams.2),
|
||||
|
Reference in New Issue
Block a user