aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/wrong-threshold.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2017-07-23 20:51:58 -0500
committerJorge Aparicio <jorge@japaric.io>2017-07-23 20:51:58 -0500
commit6ea9cda6635e7536523f3c6d3d217f7d474ae4a2 (patch)
treec5617f6b60531891231ba2b5b029f957562a085f /tests/cfail/wrong-threshold.rs
parent05feb7b018817f88123900c9196e830d51608a5f (diff)
update cfail tests
Diffstat (limited to 'tests/cfail/wrong-threshold.rs')
-rw-r--r--tests/cfail/wrong-threshold.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/cfail/wrong-threshold.rs b/tests/cfail/wrong-threshold.rs
index 39d3a57..05ebb2f 100644
--- a/tests/cfail/wrong-threshold.rs
+++ b/tests/cfail/wrong-threshold.rs
@@ -1,19 +1,20 @@
#![deny(warnings)]
#![feature(const_fn)]
#![feature(proc_macro)]
+#![no_std]
#[macro_use(task)]
extern crate cortex_m_rtfm as rtfm;
extern crate stm32f103xx;
-use rtfm::{app, Threshold};
+use rtfm::{app, Resource, Threshold};
app! {
device: stm32f103xx,
resources: {
- A: u8 = 0;
- B: u8 = 0;
+ static A: u8 = 0;
+ static B: u8 = 0;
},
tasks: {