boards: initialize kakute-f7-mini-v3
Signed-off-by: Onur Özkan <work@onurozkan.dev>
This commit is contained in:
1 parent
2b5d35a528
commit
43bef88e30
6 files changed
+269
-1
No files matched your search
@@ -0,0 +1,36 @@
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
use panic_halt as _;
|
||||
|
||||
#[rtic::app(device = stm32f7::stm32f745, peripherals = true)]
|
||||
mod app {
|
||||
#[shared]
|
||||
struct Shared {
|
||||
// TODO
|
||||
}
|
||||
|
||||
#[local]
|
||||
struct Local {
|
||||
// TODO
|
||||
}
|
||||
|
||||
#[init]
|
||||
fn init(_context: init::Context) -> (Shared, Local) {
|
||||
(Shared {}, Local {})
|
||||
}
|
||||
|
||||
#[task(binds = EXTI4, priority = 15)]
|
||||
fn imu_data_ready(_context: imu_data_ready::Context) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
#[idle]
|
||||
fn idle(_context: idle::Context) -> ! {
|
||||
// TODO
|
||||
|
||||
loop {
|
||||
cortex_m::asm::wfi();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user