mirror of https://github.com/ARMmbed/mbed-os.git
CMSIS 5: Virtualize NVIC_SystemReset
This applies only when the virtualization option is explicitly set. Currently only uVisor virtualizes the NVIC APIs.pull/2774/head
parent
2866e21bea
commit
373b0ba34a
|
|
@ -1353,6 +1353,7 @@ typedef struct
|
||||||
#define NVIC_GetActive __NVIC_GetActive
|
#define NVIC_GetActive __NVIC_GetActive
|
||||||
#define NVIC_SetPriority __NVIC_SetPriority
|
#define NVIC_SetPriority __NVIC_SetPriority
|
||||||
#define NVIC_GetPriority __NVIC_GetPriority
|
#define NVIC_GetPriority __NVIC_GetPriority
|
||||||
|
#define NVIC_SystemReset __NVIC_SystemReset
|
||||||
#endif /* CMSIS_NVIC_VIRTUAL */
|
#endif /* CMSIS_NVIC_VIRTUAL */
|
||||||
|
|
||||||
#ifdef CMSIS_VECTAB_VIRTUAL
|
#ifdef CMSIS_VECTAB_VIRTUAL
|
||||||
|
|
@ -1581,7 +1582,7 @@ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGr
|
||||||
|
|
||||||
The function initiates a system reset request to reset the MCU.
|
The function initiates a system reset request to reset the MCU.
|
||||||
*/
|
*/
|
||||||
__STATIC_INLINE void NVIC_SystemReset(void)
|
__STATIC_INLINE void __NVIC_SystemReset(void)
|
||||||
{
|
{
|
||||||
__DSB(); /* Ensure all outstanding memory accesses included
|
__DSB(); /* Ensure all outstanding memory accesses included
|
||||||
buffered write are completed before reset */
|
buffered write are completed before reset */
|
||||||
|
|
|
||||||
|
|
@ -1518,6 +1518,7 @@ typedef struct
|
||||||
#define NVIC_GetActive __NVIC_GetActive
|
#define NVIC_GetActive __NVIC_GetActive
|
||||||
#define NVIC_SetPriority __NVIC_SetPriority
|
#define NVIC_SetPriority __NVIC_SetPriority
|
||||||
#define NVIC_GetPriority __NVIC_GetPriority
|
#define NVIC_GetPriority __NVIC_GetPriority
|
||||||
|
#define NVIC_SystemReset __NVIC_SystemReset
|
||||||
#endif /* CMSIS_NVIC_VIRTUAL */
|
#endif /* CMSIS_NVIC_VIRTUAL */
|
||||||
|
|
||||||
#ifdef CMSIS_VECTAB_VIRTUAL
|
#ifdef CMSIS_VECTAB_VIRTUAL
|
||||||
|
|
@ -1747,7 +1748,7 @@ __STATIC_INLINE void NVIC_DecodePriority (uint32_t Priority, uint32_t PriorityGr
|
||||||
|
|
||||||
The function initiates a system reset request to reset the MCU.
|
The function initiates a system reset request to reset the MCU.
|
||||||
*/
|
*/
|
||||||
__STATIC_INLINE void NVIC_SystemReset(void)
|
__STATIC_INLINE void __NVIC_SystemReset(void)
|
||||||
{
|
{
|
||||||
__DSB(); /* Ensure all outstanding memory accesses included
|
__DSB(); /* Ensure all outstanding memory accesses included
|
||||||
buffered write are completed before reset */
|
buffered write are completed before reset */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue