diff options
author | 2020-10-02 09:33:28 +0000 | |
---|---|---|
committer | 2020-10-02 09:33:28 +0000 | |
commit | 9ca10b0d8c735a06a3a0a3623a7fc5d09b5e948c (patch) | |
tree | b561ce3896bff52207d424982fec1fe859742a85 /book/en/src/internals/interrupt-configuration.md | |
parent | 163edd7579222560caf6598cf8071f4201c277c5 (diff) | |
download | rtic-9ca10b0d8c735a06a3a0a3623a7fc5d09b5e948c.tar.gz rtic-9ca10b0d8c735a06a3a0a3623a7fc5d09b5e948c.tar.zst rtic-9ca10b0d8c735a06a3a0a3623a7fc5d09b5e948c.zip |
Add migration to 0.6 along with updated documentation
Diffstat (limited to 'book/en/src/internals/interrupt-configuration.md')
-rw-r--r-- | book/en/src/internals/interrupt-configuration.md | 4 |
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 278707c0..7aec9c9f 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: |