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,26 @@
|
||||
[package]
|
||||
name = "kaptan-kakute-f7-mini-v3"
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
rust-version.workspace = true
|
||||
version.workspace = true
|
||||
|
||||
[features]
|
||||
firmware = []
|
||||
|
||||
[dependencies]
|
||||
cortex-m = "0.7"
|
||||
panic-halt = "1"
|
||||
rtic = { version = "2.3", default-features = false, features = ["thumbv7-backend"] }
|
||||
stm32f7 = { version = "0.16", default-features = false, features = ["rt", "stm32f745"] }
|
||||
|
||||
[build-dependencies]
|
||||
kaptan-spec = { path = "../../libs/kaptan-spec", features = ["std"] }
|
||||
|
||||
[[bin]]
|
||||
name = "kaptan-kakute-f7-mini-v3"
|
||||
path = "src/main.rs"
|
||||
required-features = ["firmware"]
|
||||
test = false
|
||||
bench = false
|
||||
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
kaptan_spec::validate_package();
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
# --- version: 0.1.0 ---
|
||||
|
||||
---
|
||||
title: Kaptan Support for Kakute F7 Mini V3
|
||||
status: in-progress
|
||||
owners:
|
||||
- Onur Özkan <work@onurozkan.dev>
|
||||
---
|
||||
|
||||
## TODO
|
||||
Reference in new issue
Block a user