openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches
arm_cm3_reset.h
Go to the documentation of this file.
1#include "core_cm3.h"
2
3static inline void mcu_reset(void)
4{
5 /* Issue a system reset */
6 SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) |
7 (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
9 /* Ensure completion of memory accesses */
10 __asm volatile ("dsb");
11 /* Wait for the reset */
12 while(1);
13}
CMSIS Cortex-M3 Core Peripheral Access Layer Header File.
#define SCB_AIRCR_PRIGROUP_Msk
Definition core_cm3.h:469
#define SCB_AIRCR_VECTKEY_Pos
Definition core_cm3.h:459
#define SCB_AIRCR_SYSRESETREQ_Msk
Definition core_cm3.h:472
#define SCB
Definition core_cm3.h:1385