Remove HAL initialization from #[embassy::main] macro.
This commit is contained in:
@@ -4,13 +4,14 @@
|
||||
#![feature(generic_associated_types)]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
use embassy_executor::executor::Spawner;
|
||||
use embassy_executor::time::{Duration, Timer};
|
||||
use embassy_nrf::gpio::{Level, Output, OutputDrive};
|
||||
use embassy_nrf::Peripherals;
|
||||
use panic_reset as _;
|
||||
|
||||
#[embassy_executor::main]
|
||||
async fn main(_s: embassy_executor::executor::Spawner, p: Peripherals) {
|
||||
async fn main(_spawner: Spawner) {
|
||||
let p = embassy_nrf::init(Default::default());
|
||||
let mut led = Output::new(p.P0_13, Level::Low, OutputDrive::Standard);
|
||||
//let mut led = Output::new(p.P1_10, Level::Low, OutputDrive::Standard);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user