30 #ifndef __STM32F30x_MISC_H 31 #define __STM32F30x_MISC_H 38 #include "stm32f30x.h" 56 uint8_t NVIC_IRQChannel;
61 uint8_t NVIC_IRQChannelPreemptionPriority;
67 uint8_t NVIC_IRQChannelSubPriority;
113 #define NVIC_VectTab_RAM ((uint32_t)0x20000000) 114 #define NVIC_VectTab_FLASH ((uint32_t)0x08000000) 115 #define IS_NVIC_VECTTAB(VECTTAB) (((VECTTAB) == NVIC_VectTab_RAM) || \ 116 ((VECTTAB) == NVIC_VectTab_FLASH)) 125 #define NVIC_LP_SEVONPEND ((uint8_t)0x10) 126 #define NVIC_LP_SLEEPDEEP ((uint8_t)0x04) 127 #define NVIC_LP_SLEEPONEXIT ((uint8_t)0x02) 128 #define IS_NVIC_LP(LP) (((LP) == NVIC_LP_SEVONPEND) || \ 129 ((LP) == NVIC_LP_SLEEPDEEP) || \ 130 ((LP) == NVIC_LP_SLEEPONEXIT)) 139 #define NVIC_PriorityGroup_0 ((uint32_t)0x700) 141 #define NVIC_PriorityGroup_1 ((uint32_t)0x600) 143 #define NVIC_PriorityGroup_2 ((uint32_t)0x500) 145 #define NVIC_PriorityGroup_3 ((uint32_t)0x400) 147 #define NVIC_PriorityGroup_4 ((uint32_t)0x300) 150 #define IS_NVIC_PRIORITY_GROUP(GROUP) (((GROUP) == NVIC_PriorityGroup_0) || \ 151 ((GROUP) == NVIC_PriorityGroup_1) || \ 152 ((GROUP) == NVIC_PriorityGroup_2) || \ 153 ((GROUP) == NVIC_PriorityGroup_3) || \ 154 ((GROUP) == NVIC_PriorityGroup_4)) 156 #define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY) ((PRIORITY) < 0x10) 158 #define IS_NVIC_SUB_PRIORITY(PRIORITY) ((PRIORITY) < 0x10) 160 #define IS_NVIC_OFFSET(OFFSET) ((OFFSET) < 0x000FFFFF) 169 #define SysTick_CLKSource_HCLK_Div8 ((uint32_t)0xFFFFFFFB) 170 #define SysTick_CLKSource_HCLK ((uint32_t)0x00000004) 171 #define IS_SYSTICK_CLK_SOURCE(SOURCE) (((SOURCE) == SysTick_CLKSource_HCLK) || \ 172 ((SOURCE) == SysTick_CLKSource_HCLK_Div8)) void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState)
Selects the condition for the system to enter low power mode.
void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup)
Configures the priority grouping: pre-emption priority and subpriority.
NVIC Init Structure definition.
void NVIC_Init(NVIC_InitTypeDef *NVIC_InitStruct)
Initializes the NVIC peripheral according to the specified parameters in the NVIC_InitStruct.
void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource)
Configures the SysTick clock source.
void NVIC_SetVectorTable(uint32_t NVIC_VectTab, uint32_t Offset)
Sets the vector table location and Offset.