Initial Commit
TODOS: 1. Ensure memory.x has correct memory regions. 2. Add HAL loop delay.
This commit is contained in:
commit
0f9e7ebb58
10 changed files with 647 additions and 0 deletions
19
src/main.rs
Normal file
19
src/main.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
use cortex_m_rt::entry;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use panic_halt;
|
||||
use stm32l4xx_hal::{pac, rcc::RccExt};
|
||||
|
||||
#[entry]
|
||||
fn main() -> ! {
|
||||
let dp = pac::Peripherals::take().unwrap();
|
||||
// let cp = cortex_m::Peripherals::take().unwrap();
|
||||
|
||||
let mut _rcc = dp.RCC.constrain();
|
||||
|
||||
|
||||
loop {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue