application: Explicitly enable global interrupts.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 16 Nov 2019 15:05:11 +0000 (16:05 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000 (20:38 +0100)
The bootloader now longer leaves them enabled before it jumps
to the application, so we need to enable them explicitly.

src/application/main.rs

index ca5d1c155333dff629a47c9c79503ce732a09100..55214279c599367e8010a578cb597291b7449675 100644 (file)
@@ -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");