Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed by
Diff: TARGET_NUCLEO_L152RE/core_ca9.h
- Revision:
- 115:87f2f5183dfb
- Parent:
- 92:4fc01daae5a5
--- a/TARGET_NUCLEO_L152RE/core_ca9.h Tue Feb 16 14:28:01 2016 +0000 +++ b/TARGET_NUCLEO_L152RE/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