Skip to content
Snippets Groups Projects
Commit 72a7241d authored by Per Lindgren's avatar Per Lindgren
Browse files

main move to rtic6

parent dc83de16
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# runner = "arm-none-eabi-gdb -q -x openocd.gdb" # runner = "arm-none-eabi-gdb -q -x openocd.gdb"
# runner = "gdb-multiarch -q -x openocd.gdb" # runner = "gdb-multiarch -q -x openocd.gdb"
# runner = "gdb -q -x openocd.gdb" # runner = "gdb -q -x openocd.gdb"
runner = "probe-run --chip STM32F411RETx" runner = "probe-run --chip STM32F411RETx"
rustflags = [ rustflags = [
# This is needed if your flash or ram addresses are not aligned to 0x10000 in memory.x # This is needed if your flash or ram addresses are not aligned to 0x10000 in memory.x
......
...@@ -8,7 +8,7 @@ version = "0.1.0" ...@@ -8,7 +8,7 @@ version = "0.1.0"
[dependencies] [dependencies]
cortex-m = "0.6.0" cortex-m = "0.6.0"
cortex-m-rt = "0.6.13" cortex-m-rt = "0.6.13"
cortex-m-rtic = "0.5.5" cortex-m-rtic = "0.6.0-alpha.0"
# tracing # tracing
cortex-m-semihosting = "0.3.5" cortex-m-semihosting = "0.3.5"
......
...@@ -10,24 +10,22 @@ use cortex_m; ...@@ -10,24 +10,22 @@ use cortex_m;
use panic_rtt_target as _; use panic_rtt_target as _;
use rtt_target::{rprintln, rtt_init_print}; use rtt_target::{rprintln, rtt_init_print};
use stm32f4; use stm32f4;
#[rtic::app(device = stm32f4, peripherals = false)]
// #[rtic::app(device = lm3s6965, peripherals = true)] mod app {
#[rtic::app(device = stm32f4)] use super::*;
const APP: () = {
#[init] #[init]
fn init(_cx: init::Context) { fn init(_cx: init::Context) -> init::LateResources {
rtt_init_print!(); rtt_init_print!();
rprintln!("init"); rprintln!("init");
init::LateResources {}
} }
#[idle] #[idle]
fn idle(_cx: idle::Context) -> ! { fn idle(_cx: idle::Context) -> ! {
rprintln!("idle"); rprintln!("idle");
panic!("panic"); panic!("panic");
loop { loop {
continue; continue;
} }
} }
}; }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment