Introduce a prelude to mcu-board-support to make esp-hal available when the entry point comes from esp_hal::main

esp_hal::main's code requires the availability of `esp_hal` as import.
This commit is contained in:
Simon Hausmann 2025-04-14 17:13:21 +02:00 committed by Simon Hausmann
parent 5cd1c157f1
commit 00c89626df
7 changed files with 19 additions and 5 deletions

View file

@ -99,6 +99,8 @@ The main.rs will look something like this
#![cfg_attr(not(feature = "simulator"), no_main)]
slint::include_modules!();
use mcu_board_support::prelude::*;
#[mcu_board_support::entry]
fn main() -> ! {
mcu_board_support::init();