diff options
author | 2020-10-23 10:35:56 +0200 | |
---|---|---|
committer | 2020-10-23 23:58:09 +0200 | |
commit | 1c244a995d54332649c1643aa0a3178f169406e4 (patch) | |
tree | ef7676e7439ccf9407fcde998a654d9700f20524 /examples/ramfunc.rs | |
parent | 86699039e99229049ee3c739eaf860acc70a1bf7 (diff) | |
download | rtic-1c244a995d54332649c1643aa0a3178f169406e4.tar.gz rtic-1c244a995d54332649c1643aa0a3178f169406e4.tar.zst rtic-1c244a995d54332649c1643aa0a3178f169406e4.zip |
move dispatchers to app argument
Diffstat (limited to 'examples/ramfunc.rs')
-rw-r--r-- | examples/ramfunc.rs | 17 |
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(); - } } |