71 #define AIRCR_VECTKEY_MASK ((uint32_t)0x05FA0000) 120 uint32_t tmppriority = 0x00, tmppre = 0x00, tmpsub = 0x0F;
130 tmppriority = (0x700 - ((
SCB->AIRCR) & (uint32_t)0x700))>> 0x08;
131 tmppre = (0x4 - tmppriority);
132 tmpsub = tmpsub >> tmppriority;
136 tmppriority = tmppriority << 0x04;
167 SCB->VTOR = NVIC_VectTab | (Offset & (uint32_t)0x1FFFFF80);
188 SCB->SCR |= LowPowerMode;
192 SCB->SCR &= (uint32_t)(~(uint32_t)LowPowerMode);
void NVIC_Init(NVIC_InitTypeDef *NVIC_InitStruct)
Initializes the NVIC peripheral according to the specified parameters in the NVIC_InitStruct.
void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup)
Configures the priority grouping: pre-emption priority and subpriority.
#define IS_SYSTICK_CLK_SOURCE(SOURCE)
#define IS_NVIC_OFFSET(OFFSET)
void assert_param(int val)
uint8_t NVIC_IRQChannelSubPriority
NVIC Init Structure definition.
#define IS_FUNCTIONAL_STATE(STATE)
#define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY)
#define IS_NVIC_PRIORITY_GROUP(GROUP)
This file contains all the functions prototypes for the miscellaneous firmware library functions (add...
FunctionalState NVIC_IRQChannelCmd
#define IS_NVIC_VECTTAB(VECTTAB)
void NVIC_SetVectorTable(uint32_t NVIC_VectTab, uint32_t Offset)
Sets the vector table location and Offset.
#define SysTick_CLKSource_HCLK_Div8
uint8_t NVIC_IRQChannelPreemptionPriority
#define IS_NVIC_SUB_PRIORITY(PRIORITY)
#define SysTick_CLKSource_HCLK
void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource)
Configures the SysTick clock source.
void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState)
Selects the condition for the system to enter low power mode.
#define AIRCR_VECTKEY_MASK