From 478b0ecb0e903ee48d88aab7e09437b6ee536575 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 29 Jul 2019 23:43:26 -0700 Subject: [PATCH] Add __IRQ_HANDLER from hello_magic.rs to setup doc Looks like the docs weren't updated when the example was. --- book/src/development-setup.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/book/src/development-setup.md b/book/src/development-setup.md index d191358..d6d3231 100644 --- a/book/src/development-setup.md +++ b/book/src/development-setup.md @@ -169,6 +169,11 @@ fn main(_argc: isize, _argv: *const *const u8) -> isize { loop {} } } + +#[no_mangle] +static __IRQ_HANDLER: extern "C" fn() = irq_handler; + +extern "C" fn irq_handler() {} ``` Throw that into your project skeleton, build the program, and give it a run in