89 #define AIRCR_VECTKEY_MASK ((uint32_t)0x05FA0000)
121 assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup));
124 SCB->AIRCR = AIRCR_VECTKEY_MASK | NVIC_PriorityGroup;
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;
183 assert_param(IS_NVIC_VECTTAB(NVIC_VectTab));
184 assert_param(IS_NVIC_OFFSET(Offset));
186 SCB->VTOR = NVIC_VectTab | (Offset & (uint32_t)0x1FFFFF80);
202 assert_param(IS_NVIC_LP(LowPowerMode));
203 assert_param(IS_FUNCTIONAL_STATE(NewState));
205 if (NewState != DISABLE)
207 SCB->SCR |= LowPowerMode;
211 SCB->SCR &= (uint32_t)(~(uint32_t)LowPowerMode);
226 assert_param(IS_SYSTICK_CLK_SOURCE(SysTick_CLKSource));
227 if (SysTick_CLKSource == SysTick_CLKSource_HCLK)
229 SysTick->CTRL |= SysTick_CLKSource_HCLK;
233 SysTick->CTRL &= SysTick_CLKSource_HCLK_Div8;
This file contains all the functions prototypes for the miscellaneous firmware library functions (add...
void NVIC_SetVectorTable(uint32_t NVIC_VectTab, uint32_t Offset)
Sets the vector table location and Offset.
void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource)
Configures the SysTick clock source.
uint8_t NVIC_IRQChannelPreemptionPriority
void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup)
Configures the priority grouping: pre-emption priority and subpriority.
NVIC Init Structure definition.
FunctionalState NVIC_IRQChannelCmd
uint8_t NVIC_IRQChannelSubPriority
void NVIC_Init(NVIC_InitTypeDef *NVIC_InitStruct)
Initializes the NVIC peripheral according to the specified parameters in the NVIC_InitStruct.
void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState)
Selects the condition for the system to enter low power mode.