Add __IRQ_HANDLER from hello_magic.rs to setup doc

Looks like the docs weren't updated when the example was.
This commit is contained in:
Alex 2019-07-29 23:43:26 -07:00 committed by GitHub
parent f66ccba442
commit 478b0ecb0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,6 +169,11 @@ fn main(_argc: isize, _argv: *const *const u8) -> isize {
loop {} 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 Throw that into your project skeleton, build the program, and give it a run in