STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
stm32f0xx_misc.h
Go to the documentation of this file.
1 
29 /* Define to prevent recursive inclusion -------------------------------------*/
30 #ifndef __STM32F0XX_MISC_H
31 #define __STM32F0XX_MISC_H
32 
33 #ifdef __cplusplus
34  extern "C" {
35 #endif
36 
37 /* Includes ------------------------------------------------------------------*/
38 #include "stm32f0xx.h"
39 
48 /* Exported types ------------------------------------------------------------*/
49 
54 typedef struct
55 {
56  uint8_t NVIC_IRQChannel;
61  uint8_t NVIC_IRQChannelPriority;
65  FunctionalState NVIC_IRQChannelCmd;
69 
77 /* Exported constants --------------------------------------------------------*/
78 
87 #define NVIC_LP_SEVONPEND ((uint8_t)0x10)
88 #define NVIC_LP_SLEEPDEEP ((uint8_t)0x04)
89 #define NVIC_LP_SLEEPONEXIT ((uint8_t)0x02)
90 #define IS_NVIC_LP(LP) (((LP) == NVIC_LP_SEVONPEND) || \
91  ((LP) == NVIC_LP_SLEEPDEEP) || \
92  ((LP) == NVIC_LP_SLEEPONEXIT))
93 
100 #define IS_NVIC_PRIORITY(PRIORITY) ((PRIORITY) < 0x04)
101 
110 #define SysTick_CLKSource_HCLK_Div8 ((uint32_t)0xFFFFFFFB)
111 #define SysTick_CLKSource_HCLK ((uint32_t)0x00000004)
112 #define IS_SYSTICK_CLK_SOURCE(SOURCE) (((SOURCE) == SysTick_CLKSource_HCLK) || \
113  ((SOURCE) == SysTick_CLKSource_HCLK_Div8))
114 
122 /* Exported macro ------------------------------------------------------------*/
123 /* Exported functions ------------------------------------------------------- */
124 
125 void NVIC_Init(NVIC_InitTypeDef* NVIC_InitStruct);
126 void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState);
127 void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource);
128 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 #endif /* __STM32F0XX_MISC_H */
134 
143 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/