aboutsummaryrefslogtreecommitdiff
path: root/examples/ramfunc.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-10-23 22:03:08 +0000
committerGravatar GitHub <noreply@github.com> 2020-10-23 22:03:08 +0000
commit4f4c95be40019f6656d4eee549932ee811a40116 (patch)
tree092cede9ccdaa9b7a4381f7c369db79583d7eb8b /examples/ramfunc.rs
parentbbcae14e37c5f4ab5701b2a688bee52bfa7aaa1b (diff)
parent1c244a995d54332649c1643aa0a3178f169406e4 (diff)
downloadrtic-4f4c95be40019f6656d4eee549932ee811a40116.tar.gz
rtic-4f4c95be40019f6656d4eee549932ee811a40116.tar.zst
rtic-4f4c95be40019f6656d4eee549932ee811a40116.zip
Merge #400
400: codegen and examples r=AfoHT a=perlindgren just a test Co-authored-by: Per Lindgren <per.lindgren@ltu.se>
Diffstat (limited to 'examples/ramfunc.rs')
-rw-r--r--examples/ramfunc.rs17
1 files changed, 8 insertions, 9 deletions
diff --git a/examples/ramfunc.rs b/examples/ramfunc.rs
index 4d46c6dd..b5aa17b9 100644
--- a/examples/ramfunc.rs
+++ b/examples/ramfunc.rs
@@ -7,7 +7,14 @@
use panic_semihosting as _;
-#[rtic::app(device = lm3s6965)]
+#[rtic::app(
+ device = lm3s6965,
+ dispatchers = [
+ UART0,
+ #[link_section = ".data.UART1"]
+ UART1
+ ])
+]
mod app {
use cortex_m_semihosting::{debug, hprintln};
@@ -33,12 +40,4 @@ mod app {
fn bar(_: bar::Context) {
foo::spawn().unwrap();
}
-
- extern "C" {
- fn UART0();
-
- // run the task dispatcher from RAM
- #[link_section = ".data.UART1"]
- fn UART1();
- }
}