Skip to content
Snippets Groups Projects
Commit 11b07850 authored by Per's avatar Per
Browse files

Cargo

parent 6be31b02
No related branches found
No related tags found
No related merge requests found
...@@ -19,14 +19,14 @@ cortex-m-semihosting = "0.2.0" ...@@ -19,14 +19,14 @@ cortex-m-semihosting = "0.2.0"
[dependencies.cortex-m-debug] [dependencies.cortex-m-debug]
version = "0.1.0" version = "0.1.0"
path = "../cortex-m-debug" git = "https://gitlab.henriktjader.com/pln/cortex-m-debug.git"
[dependencies.cortex-m-rt] [dependencies.cortex-m-rt]
features = ["abort-on-panic"] features = ["abort-on-panic"]
version = "0.3.3" version = "0.3.3"
[dependencies.stm32f413] [dependencies.stm32f40x]
path = "../stm32f413" git = "https://gitlab.henriktjader.com/pln/STM32F40x.git"
features = ["rt"] features = ["rt"]
version = "0.1.0" version = "0.1.0"
...@@ -37,3 +37,7 @@ wcet_nop = [] ...@@ -37,3 +37,7 @@ wcet_nop = []
[profile.release] [profile.release]
lto = true lto = true
debug = true debug = true
[profile.dev]
codegen-units = 1
incremental = false
\ No newline at end of file
...@@ -8,16 +8,16 @@ ...@@ -8,16 +8,16 @@
extern crate cortex_m; extern crate cortex_m;
extern crate cortex_m_rtfm as rtfm; extern crate cortex_m_rtfm as rtfm;
extern crate stm32f413; extern crate stm32f40x;
#[macro_use] #[macro_use]
extern crate cortex_m_debug; extern crate cortex_m_debug;
use stm32f413::Interrupt; use stm32f40x::Interrupt;
use rtfm::{app, Resource, Threshold}; use rtfm::{app, Resource, Threshold};
app! { app! {
device: stm32f413, device: stm32f40x,
resources: { resources: {
static LOW: u64 = 0; static LOW: u64 = 0;
...@@ -46,7 +46,6 @@ app! { ...@@ -46,7 +46,6 @@ app! {
} }
fn init(p: init::Peripherals, _r: init::Resources) { fn init(p: init::Peripherals, _r: init::Resources) {
//iprintln!(&p.ITM.stim[0], "Hello ITM");
ipln!("Hello nasty"); ipln!("Hello nasty");
ipln!(); ipln!();
ipln!("Well it's..."); ipln!("Well it's...");
...@@ -74,7 +73,10 @@ fn idle() -> ! { ...@@ -74,7 +73,10 @@ fn idle() -> ! {
} }
#[allow(non_snake_case)] #[allow(non_snake_case)]
fn exti0(t: &mut Threshold, EXTI0::Resources { mut LOW, mut HIGH }: EXTI0::Resources) { fn exti0(
t: &mut Threshold,
EXTI0::Resources { mut LOW, mut HIGH }: EXTI0::Resources,
) {
// Because this task has a priority of 1 the preemption threshold `t` also // Because this task has a priority of 1 the preemption threshold `t` also
// starts at 1 // starts at 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment