mbed library sources. Supersedes mbed-src. Add PORTG support for STM32L476JG (SensorTile kit)

Dependents:   SensorTileTest

Fork of mbed-dev by mbed official

Revision:
66:fdb3f9f9a72f
Parent:
0:9b334a45a8ff
Child:
144:ef7eb2e8f9f7
--- a/targets/cmsis/core_ca9.h	Tue Feb 16 16:00:10 2016 +0000
+++ b/targets/cmsis/core_ca9.h	Thu Feb 18 09:45:10 2016 +0000
@@ -89,6 +89,11 @@
   #define __STATIC_INLINE  static inline
   #define __STATIC_ASM     static __asm
 
+#include <stdint.h>
+inline uint32_t __get_PSR(void) {
+	__ASM("mrs r0, cpsr");
+}
+
 #elif defined ( __TMS470__ )
   #define __ASM            __asm                                      /*!< asm keyword for TI CCS Compiler       */
   #define __STATIC_INLINE  static inline