aboutsummaryrefslogtreecommitdiff
path: root/examples/baseline.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-06-30 20:16:46 +0000
committerGravatar GitHub <noreply@github.com> 2020-06-30 20:16:46 +0000
commitbfb498e722dbe68c00ea8aab73d910561bab257c (patch)
treec1f07bd62cc44ff8bb36d8ebf7997b9d5d535bf3 /examples/baseline.rs
parent629acdd70f06bd27ada1203fef3ba406d3de7d84 (diff)
parent8e636f0d1286cf905518022d42adf9624bed44df (diff)
downloadrtic-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. ![image](https://user-images.githubusercontent.com/105168/85903840-9ad2a780-b807-11ea-943d-3f37b814c23f.png) 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/baseline.rs')
-rw-r--r--examples/baseline.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/baseline.rs b/examples/baseline.rs
index 4be8cd39..f46b273d 100644
--- a/examples/baseline.rs
+++ b/examples/baseline.rs
@@ -45,7 +45,10 @@ const APP: () = {
cx.spawn.foo().unwrap();
}
+ // 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();
}
};