From 826f15ec13c6587f5ad6712134cf8bbbf04d33ac Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 16 Nov 2019 16:05:11 +0100 Subject: [PATCH] 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. --- src/application/main.rs | 4 ++++ 1 file changed, 4 insertions(+) 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"); -- 2.30.2