MBED-DEV only fro Nucleo STM32F303K8T6
Fork of mbed-dev by
Diff: targets/cmsis/core_ca9.h
- 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