aboutsummaryrefslogtreecommitdiff
path: root/book/en/src/internals/interrupt-configuration.md
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2020-10-05 18:25:15 +0200
committerEmil Fresk <emil.fresk@gmail.com>2020-10-05 18:25:15 +0200
commiteec0908024d9b4127ed496b4781adc08000cc2c2 (patch)
treef128b3d91ea4ac0f171ab334d4517552a6803d01 /book/en/src/internals/interrupt-configuration.md
parent9d2598dc071882a94b813ab1d9ddf49092546257 (diff)
parentf493f21359ccb3ab4643d9470f3581532f47593a (diff)
Merge branch 'master' into always_late_resources
Diffstat (limited to 'book/en/src/internals/interrupt-configuration.md')
-rw-r--r--book/en/src/internals/interrupt-configuration.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/book/en/src/internals/interrupt-configuration.md b/book/en/src/internals/interrupt-configuration.md
index 278707c..7aec9c9 100644
--- a/book/en/src/internals/interrupt-configuration.md
+++ b/book/en/src/internals/interrupt-configuration.md
@@ -13,7 +13,7 @@ This example gives you an idea of the code that the RTIC framework runs:
``` rust
#[rtic::app(device = lm3s6965)]
-const APP: () = {
+mod app {
#[init]
fn init(c: init::Context) {
// .. user code ..
@@ -28,7 +28,7 @@ const APP: () = {
fn foo(c: foo::Context) {
// .. user code ..
}
-};
+}
```
The framework generates an entry point that looks like this: