From: Tilman Sauerbeck Date: Sat, 16 Nov 2019 15:05:11 +0000 (+0100) Subject: application: Explicitly enable global interrupts. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=826f15ec13c6587f5ad6712134cf8bbbf04d33ac;p=gps-watch.git application: Explicitly enable global interrupts. The bootloader now longer leaves them enabled before it jumps to the application, so we need to enable them explicitly. --- diff --git a/src/application/main.rs b/src/application/main.rs index ca5d1c1..5521427 100644 --- a/src/application/main.rs +++ b/src/application/main.rs @@ -33,6 +33,8 @@ use common::systick; use common::usb_serial; extern { + fn enable_interrupts(); + static mut cdc_tx_buf: Buffer; } @@ -41,6 +43,8 @@ pub unsafe extern fn main() { clock::configure(); systick::init(); + enable_interrupts(); + usb_serial::init(0xf055, 0x635d); cdc_tx_buf.write(b"\n");