#[cfg(feature = "cores3")]
pub mod cores3;
#[cfg(feature = "display")]
pub mod display;
#[cfg(feature = "fire27")]
pub mod fire27;
#[cfg(feature = "multicore")]
mod multicore;
#[cfg(feature = "multicore")]
pub use multicore::run_app_core;
#[cfg(any(feature = "cores3", feature = "fire27"))]
pub mod spi2;
use esp_hal::{
interrupt::software::SoftwareInterruptControl,
peripherals::{CPU_CTRL, LPWR, Peripherals},
timer::AnyTimer,
};
#[cfg(feature = "cores3")]
pub const SCREEN_W: u16 = 320;
#[cfg(feature = "cores3")]
pub const SCREEN_H: u16 = 240;
#[cfg(feature = "fire27")]
pub const SCREEN_W: u16 = 320;
#[cfg(feature = "fire27")]
pub const SCREEN_H: u16 = 240;
pub fn init() -> Peripherals {
esp_hal::init(esp_hal::Config::default().with_cpu_clock(esp_hal::clock::CpuClock::max()))
}
pub struct SystemResources<'a> {
pub sw_int: SoftwareInterruptControl<'a>,
pub timer0_0: AnyTimer<'a>,
pub timer0_1: AnyTimer<'a>,
pub timer1_0: AnyTimer<'a>,
pub timer1_1: AnyTimer<'a>,
pub cpu_ctrl: CPU_CTRL<'a>,
pub lpwr: LPWR<'a>,
}