89 #define AIRCR_VECTKEY_MASK ((uint32_t)0x05FA0000) 138 uint8_t tmppriority = 0x00, tmppre = 0x00, tmpsub = 0x0F;
148 tmppriority = (0x700 - ((
SCB->AIRCR) & (uint32_t)0x700))>> 0x08;
149 tmppre = (0x4 - tmppriority);
150 tmpsub = tmpsub >> tmppriority;
155 tmppriority = tmppriority << 0x04;
186 SCB->VTOR = NVIC_VectTab | (Offset & (uint32_t)0x1FFFFF80);
207 SCB->SCR |= LowPowerMode;
211 SCB->SCR &= (uint32_t)(~(uint32_t)LowPowerMode);
void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState)
Selects the condition for the system to enter low power mode.
void NVIC_Init(NVIC_InitTypeDef *NVIC_InitStruct)
Initializes the NVIC peripheral according to the specified parameters in the NVIC_InitStruct.
#define IS_SYSTICK_CLK_SOURCE(SOURCE)
#define IS_NVIC_OFFSET(OFFSET)
void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource)
Configures the SysTick clock source.
void assert_param(int val)
uint8_t NVIC_IRQChannelSubPriority
NVIC Init Structure definition.
#define IS_FUNCTIONAL_STATE(STATE)
void NVIC_SetVectorTable(uint32_t NVIC_VectTab, uint32_t Offset)
Sets the vector table location and Offset.
#define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY)
#define IS_NVIC_PRIORITY_GROUP(GROUP)
FunctionalState NVIC_IRQChannelCmd
#define IS_NVIC_VECTTAB(VECTTAB)
#define SysTick_CLKSource_HCLK_Div8
uint8_t NVIC_IRQChannelPreemptionPriority
#define IS_NVIC_SUB_PRIORITY(PRIORITY)
void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup)
Configures the priority grouping: pre-emption priority and subpriority.
#define SysTick_CLKSource_HCLK
#define AIRCR_VECTKEY_MASK