Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
Diff: TARGET_ARM_MPS2_M0/core_ca9.h
- Revision:
- 115:87f2f5183dfb
- Parent:
- 102:da0ca467f8b5
diff -r 252557024ec3 -r 87f2f5183dfb TARGET_ARM_MPS2_M0/core_ca9.h --- a/TARGET_ARM_MPS2_M0/core_ca9.h Tue Feb 16 14:28:01 2016 +0000 +++ b/TARGET_ARM_MPS2_M0/core_ca9.h Wed Mar 02 09:58:28 2016 +0100 @@ -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