mbed library sources

Fork of mbed-src by mbed official

Revision:
526:7c4bdfe6a168
Parent:
525:c320967f86b9
Child:
527:74d34ce5a2b5
--- a/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/serial_api.c	Tue Apr 28 11:45:12 2015 +0100
+++ b/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/serial_api.c	Tue Apr 28 13:00:10 2015 +0100
@@ -36,6 +36,7 @@
 #include "dma_api.h"
 #include "sleep_api.h"
 #include "buffer.h"
+#include "sleepmodes.h"
 
 #define SERIAL_LEAST_ACTIVE_SLEEPMODE EM1
 #define SERIAL_LEAST_ACTIVE_SLEEPMODE_LEUART EM2
@@ -227,7 +228,7 @@
         default:
             MBED_ASSERT(0);
     }
-    return 0;
+    return (IRQn_Type)0;
 }
 
 /**
@@ -270,7 +271,7 @@
         default:
             MBED_ASSERT(0);
     }
-    return 0;
+    return (IRQn_Type)0;
 }
 
 /**