diff options
Diffstat (limited to 'os/ports/GCC/ARMCM3/chcore.h')
-rw-r--r-- | os/ports/GCC/ARMCM3/chcore.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/os/ports/GCC/ARMCM3/chcore.h b/os/ports/GCC/ARMCM3/chcore.h index a720d9ffb..e627d2302 100644 --- a/os/ports/GCC/ARMCM3/chcore.h +++ b/os/ports/GCC/ARMCM3/chcore.h @@ -362,6 +362,7 @@ struct context { * @brief Port-related initialization code.
*/
#define port_init() { \
+ SCB_AIRCR = AIRCR_VECTKEY | AIRCR_PRIGROUP(0); \
NVICSetSystemHandlerPriority(HANDLER_SVCALL, \
CORTEX_PRIORITY_MASK(CORTEX_PRIORITY_SVCALL)); \
NVICSetSystemHandlerPriority(HANDLER_PENDSV, \
|