diff options
author | 2020-06-30 20:16:46 +0000 | |
---|---|---|
committer | 2020-06-30 20:16:46 +0000 | |
commit | bfb498e722dbe68c00ea8aab73d910561bab257c (patch) | |
tree | c1f07bd62cc44ff8bb36d8ebf7997b9d5d535bf3 /examples/t-schedule.rs | |
parent | 629acdd70f06bd27ada1203fef3ba406d3de7d84 (diff) | |
parent | 8e636f0d1286cf905518022d42adf9624bed44df (diff) | |
download | rtic-bfb498e722dbe68c00ea8aab73d910561bab257c.tar.gz rtic-bfb498e722dbe68c00ea8aab73d910561bab257c.tar.zst rtic-bfb498e722dbe68c00ea8aab73d910561bab257c.zip |
Merge #337
337: Examples: Clarify extern section r=korken89 a=dbrgn
Some beginners are confused about the "extern" section, so I added an explanation comment to all examples.

Furthermore, using the UARTx interrupts when UART is actually being used in the same example may be confusing, so I changed them all to SSI0/QEI0.
Co-authored-by: Danilo Bargen <mail@dbrgn.ch>
Diffstat (limited to 'examples/t-schedule.rs')
-rw-r--r-- | examples/t-schedule.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/t-schedule.rs b/examples/t-schedule.rs index 67fcb749..4a231822 100644 --- a/examples/t-schedule.rs +++ b/examples/t-schedule.rs @@ -53,7 +53,10 @@ const APP: () = { #[task] fn baz(_: baz::Context, _x: u32, _y: u32) {} + // RTIC requires that unused interrupts are declared in an extern block when + // using software tasks; these free interrupts will be used to dispatch the + // software tasks. extern "C" { - fn UART1(); + fn SSI0(); } }; |