aboutsummaryrefslogtreecommitdiff
path: root/examples/peripherals-taken.rs
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@tjaders.com>2020-09-25 13:36:00 +0000
committerHenrik Tjäder <henrik@tjaders.com>2020-09-25 14:33:08 +0000
commitabc50d2c58ef3470c67269a93a7f31fcd36bcea4 (patch)
treeea1e91b5b8cce6d25fb5afa2c6dd7dbff609a970 /examples/peripherals-taken.rs
parent224e1991e0f4a6eb8d674ba129d8700b3b450d46 (diff)
Name collision with RTIC-main
With modules the scoping is different and task names collide with main generated by RTIC
Diffstat (limited to 'examples/peripherals-taken.rs')
-rw-r--r--examples/peripherals-taken.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/peripherals-taken.rs b/examples/peripherals-taken.rs
index b9267df..10bc260 100644
--- a/examples/peripherals-taken.rs
+++ b/examples/peripherals-taken.rs
@@ -9,7 +9,7 @@ use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
mod app {
#[init]
- fn main(_: main::Context) {
+ fn taskmain(_: taskmain::Context) {
assert!(cortex_m::Peripherals::take().is_none());
debug::exit(debug::EXIT_SUCCESS);
}