|
@@ -2,7 +2,7 @@
|
|
|
* @file core_cm4.h
|
|
* @file core_cm4.h
|
|
|
* @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File
|
|
* @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File
|
|
|
* @version V5.00
|
|
* @version V5.00
|
|
|
- * @date 18. April 2016
|
|
|
|
|
|
|
+ * @date 19. April 2016
|
|
|
******************************************************************************/
|
|
******************************************************************************/
|
|
|
/*
|
|
/*
|
|
|
* Copyright (c) 2009-2016 ARM Limited. All rights reserved.
|
|
* Copyright (c) 2009-2016 ARM Limited. All rights reserved.
|
|
@@ -1616,6 +1616,8 @@ typedef struct
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CMSIS_NVIC_VIRTUAL
|
|
#ifndef CMSIS_NVIC_VIRTUAL
|
|
|
|
|
+ #define NVIC_SetPriorityGrouping __NVIC_SetPriorityGrouping
|
|
|
|
|
+ #define NVIC_GetPriorityGrouping __NVIC_GetPriorityGrouping
|
|
|
#define NVIC_EnableIRQ __NVIC_EnableIRQ
|
|
#define NVIC_EnableIRQ __NVIC_EnableIRQ
|
|
|
#define NVIC_DisableIRQ __NVIC_DisableIRQ
|
|
#define NVIC_DisableIRQ __NVIC_DisableIRQ
|
|
|
#define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ
|
|
#define NVIC_GetPendingIRQ __NVIC_GetPendingIRQ
|
|
@@ -1644,7 +1646,7 @@ typedef struct
|
|
|
priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
|
|
priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
|
|
|
\param [in] PriorityGroup Priority grouping field.
|
|
\param [in] PriorityGroup Priority grouping field.
|
|
|
*/
|
|
*/
|
|
|
-__STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
|
|
|
|
|
|
|
+__STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
|
|
|
{
|
|
{
|
|
|
uint32_t reg_value;
|
|
uint32_t reg_value;
|
|
|
uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
|
|
uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
|
|
@@ -1663,7 +1665,7 @@ __STATIC_INLINE void NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
|
|
|
\details Reads the priority grouping field from the NVIC Interrupt Controller.
|
|
\details Reads the priority grouping field from the NVIC Interrupt Controller.
|
|
|
\return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
|
|
\return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
|
|
|
*/
|
|
*/
|
|
|
-__STATIC_INLINE uint32_t NVIC_GetPriorityGrouping(void)
|
|
|
|
|
|
|
+__STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void)
|
|
|
{
|
|
{
|
|
|
return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
|
|
return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
|
|
|
}
|
|
}
|