1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
---|---|
2 | // SPDX-License-Identifier: MIT |
3 | #![no_std] |
4 | #![cfg_attr(all(feature = "mcu-board-support", not(feature = "simulator")), no_main)] |
5 | |
6 | #[cfg(not(feature = "mcu-board-support"))] |
7 | pub fn main() { |
8 | energy_monitor::main(); |
9 | } |
10 | |
11 | #[cfg(feature = "mcu-board-support")] |
12 | #[mcu_board_support::entry] |
13 | fn main() -> ! { |
14 | mcu_board_support::init(); |
15 | energy_monitor::main(); |
16 | panic!("The MCU demo should not quit") |
17 | } |
18 |