#![no_std]
mod ports;
use ports::PortTrait;
#[cfg(feature = "c-library")]
pub mod c_api;
pub mod task_manager;
pub mod timer;
#[cfg(any(target_arch = "riscv32", target_arch = "xtensa"))]
#[cfg(feature = "network")]
use esp_wifi::esp_now::EspNow;
pub fn init_system() {
ports::Port::init_heap();
ports::Port::setup_hardware_timer();
#[cfg(feature = "network")]
ports::Port::init_network();
}
#[cfg(any(target_arch = "riscv32", target_arch = "xtensa"))]
#[cfg(feature = "network")]
pub fn get_esp_now() -> EspNow<'static> {
return ports::Port::get_esp_now();
}