main: warnings++
This commit is contained in:
@@ -12,7 +12,6 @@ use embassy_executor::Spawner;
|
|||||||
use embassy_time::{Instant, Timer};
|
use embassy_time::{Instant, Timer};
|
||||||
|
|
||||||
use esp_hal::{gpio::{Output, OutputConfig}, time::Rate};
|
use esp_hal::{gpio::{Output, OutputConfig}, time::Rate};
|
||||||
#[allow(unused_imports)]
|
|
||||||
use esp_hal::{
|
use esp_hal::{
|
||||||
clock::CpuClock, interrupt::software::SoftwareInterruptControl, system::{AppCoreGuard, CpuControl, Stack}, timer::{systimer::SystemTimer, timg::{TimerGroup, Wdt}},
|
clock::CpuClock, interrupt::software::SoftwareInterruptControl, system::{AppCoreGuard, CpuControl, Stack}, timer::{systimer::SystemTimer, timg::{TimerGroup, Wdt}},
|
||||||
gpio::Pin
|
gpio::Pin
|
||||||
@@ -76,7 +75,6 @@ async fn main(spawner: Spawner) {
|
|||||||
wdt.set_timeout(esp_hal::timer::timg::MwdtStage::Stage0, esp_hal::time::Duration::from_secs(3));
|
wdt.set_timeout(esp_hal::timer::timg::MwdtStage::Stage0, esp_hal::time::Duration::from_secs(3));
|
||||||
let swi = SoftwareInterruptControl::new(peripherals.SW_INTERRUPT);
|
let swi = SoftwareInterruptControl::new(peripherals.SW_INTERRUPT);
|
||||||
let hi_exec = STATIC_HI_EXEC.init(InterruptExecutor::new(swi.software_interrupt0));
|
let hi_exec = STATIC_HI_EXEC.init(InterruptExecutor::new(swi.software_interrupt0));
|
||||||
#[allow(unused_variables)]
|
|
||||||
let hi_spawn = hi_exec.start(esp_hal::interrupt::Priority::max());
|
let hi_spawn = hi_exec.start(esp_hal::interrupt::Priority::max());
|
||||||
|
|
||||||
wdt.enable();
|
wdt.enable();
|
||||||
|
|||||||
Reference in New Issue
Block a user