main: clean up use statements

This commit is contained in:
2025-12-07 13:17:44 +01:00
parent 5a403809e9
commit 531c31d190

View File

@@ -6,21 +6,21 @@
holding buffers for the duration of a data transfer."
)]
use core::ptr::addr_of_mut;
use alloc::sync::Arc;
use embassy_executor::Spawner;
use embassy_time::{Instant, Timer};
use esp_hal::{gpio::{Output, OutputConfig}, time::Rate};
use esp_hal::{gpio::{Output, OutputConfig, Pin}, time::Rate};
use esp_hal::{
clock::CpuClock, interrupt::software::SoftwareInterruptControl, system::{AppCoreGuard, CpuControl, Stack}, timer::{systimer::SystemTimer, timg::{TimerGroup, Wdt}},
gpio::Pin
clock::CpuClock, system::{AppCoreGuard, CpuControl, Stack}, timer::{systimer::SystemTimer, timg::{TimerGroup, Wdt}}
};
use esp_hal_embassy::{Executor, InterruptExecutor};
use log::*;
use renderbug_embassy::{logging::RenderbugLogger, tasks::{oled::{oled_ui, OledUI, OledUiSurfacePool}, safetyui::{safety_ui_main, SafetyUi}, ui::UiSurfacePool}};
use renderbug_embassy::{logging::RenderbugLogger, tasks::{oled::{OledUI, OledUiSurfacePool, oled_ui}, safetyui::{SafetyUi, safety_ui_main}, ui::UiSurfacePool}};
use renderbug_embassy::events::BusGarage;
use static_cell::StaticCell;
use esp_backtrace as _;
@@ -30,7 +30,6 @@ use renderbug_embassy::tasks::{
ui::{Ui, ui_main}
};
use figments_render::output::OutputAsync;
extern crate alloc;
@@ -39,6 +38,7 @@ extern crate alloc;
esp_bootloader_esp_idf::esp_app_desc!();
static STATIC_HI_EXEC: StaticCell<InterruptExecutor<0>> = StaticCell::new();
static CORE2_EXEC: StaticCell<Executor> = StaticCell::new();
static BUS_GARAGE: StaticCell<BusGarage> = StaticCell::new();
static mut CORE2_STACK: Stack<16384> = Stack::new();