aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2020-09-25 13:36:00 +0000
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2020-09-25 14:33:08 +0000
commitabc50d2c58ef3470c67269a93a7f31fcd36bcea4 (patch)
treeea1e91b5b8cce6d25fb5afa2c6dd7dbff609a970
parent224e1991e0f4a6eb8d674ba129d8700b3b450d46 (diff)
downloadrtic-abc50d2c58ef3470c67269a93a7f31fcd36bcea4.tar.gz
rtic-abc50d2c58ef3470c67269a93a7f31fcd36bcea4.tar.zst
rtic-abc50d2c58ef3470c67269a93a7f31fcd36bcea4.zip
Name collision with RTIC-main
With modules the scoping is different and task names collide with main generated by RTIC
-rw-r--r--examples/peripherals-taken.rs2
-rw-r--r--examples/t-htask-main.rs2
-rw-r--r--examples/t-idle-main.rs2
-rw-r--r--examples/t-init-main.rs2
-rw-r--r--examples/t-stask-main.rs6
5 files changed, 7 insertions, 7 deletions
diff --git a/examples/peripherals-taken.rs b/examples/peripherals-taken.rs
index b9267df6..10bc2603 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);
}
diff --git a/examples/t-htask-main.rs b/examples/t-htask-main.rs
index 1954d56d..998252e1 100644
--- a/examples/t-htask-main.rs
+++ b/examples/t-htask-main.rs
@@ -14,7 +14,7 @@ mod app {
}
#[task(binds = UART0)]
- fn main(_: main::Context) {
+ fn taskmain(_: taskmain::Context) {
debug::exit(debug::EXIT_SUCCESS);
}
}
diff --git a/examples/t-idle-main.rs b/examples/t-idle-main.rs
index 8400f314..03a52cb2 100644
--- a/examples/t-idle-main.rs
+++ b/examples/t-idle-main.rs
@@ -12,7 +12,7 @@ mod app {
fn init(_: init::Context) {}
#[idle]
- fn main(_: main::Context) -> ! {
+ fn taskmain(_: taskmain::Context) -> ! {
debug::exit(debug::EXIT_SUCCESS);
loop {
cortex_m::asm::nop();
diff --git a/examples/t-init-main.rs b/examples/t-init-main.rs
index b4f126ba..d0814877 100644
--- a/examples/t-init-main.rs
+++ b/examples/t-init-main.rs
@@ -9,7 +9,7 @@ use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
mod app {
#[init]
- fn main(_: main::Context) {
+ fn taskmain(_: taskmain::Context) {
debug::exit(debug::EXIT_SUCCESS);
}
}
diff --git a/examples/t-stask-main.rs b/examples/t-stask-main.rs
index 373b505c..3e650f60 100644
--- a/examples/t-stask-main.rs
+++ b/examples/t-stask-main.rs
@@ -8,13 +8,13 @@ use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
mod app {
- #[init(spawn = [main])]
+ #[init(spawn = [taskmain])]
fn init(cx: init::Context) {
- cx.spawn.main().ok();
+ cx.spawn.taskmain().ok();
}
#[task]
- fn main(_: main::Context) {
+ fn taskmain(_: taskmain::Context) {
debug::exit(debug::EXIT_SUCCESS);
}