mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 21:03:00 +00:00
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:
parent
5cd1c157f1
commit
00c89626df
7 changed files with 19 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue