18 lines
355 B
Rust
18 lines
355 B
Rust
|
|
#![no_std]
|
||
|
|
#![no_main]
|
||
|
|
|
||
|
|
// Halt on all panics. If breaking on a panic is required use `rust_begin_unwind`.
|
||
|
|
#[allow(unused_imports)]
|
||
|
|
use panic_halt;
|
||
|
|
|
||
|
|
use cortex_m_rt::entry;
|
||
|
|
use stm32l4xx_hal::{pac, rcc::RccExt};
|
||
|
|
|
||
|
|
#[entry]
|
||
|
|
fn main() -> ! {
|
||
|
|
let dp = pac::Peripherals::take().unwrap();
|
||
|
|
let cp = cortex_m::Peripherals::take().unwrap();
|
||
|
|
|
||
|
|
loop {}
|
||
|
|
}
|