MG32L003 Standard Peripherals Firmware Library

misc.h
浏览该文件的文档.
1
10 /* Define to prevent recursive inclusion -------------------------------------*/
11 #ifndef __MISC_H
12 #define __MISC_H
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 /* Includes ------------------------------------------------------------------*/
19 #include "mg32l003.h"
20
39 #define SysTick_CLKSource_HCLK_Div4 ((uint32_t)0xFFFFFFFB)
40 #define SysTick_CLKSource_HCLK ((uint32_t)0x00000004)
41 #define IS_SYSTICK_CLK_SOURCE(SOURCE) (((SOURCE) == SysTick_CLKSource_HCLK) || \
42 ((SOURCE) == SysTick_CLKSource_HCLK_Div4))
43
63 void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource);
64 void SysTick_DelayNticks(uint32_t Ticks);
65 void SysTick_DelayUs(uint32_t Us);
66 void SysTick_DelayMs(uint32_t Ms);
67
68 #ifdef __cplusplus
69 }
70 #endif
71
72 #endif /* __MISC_H */
73
SysTick_DelayNticks
void SysTick_DelayNticks(uint32_t Ticks)
Delay n ticks.
Definition: misc.c:95
SysTick_DelayMs
void SysTick_DelayMs(uint32_t Ms)
Delay n Ms.
Definition: misc.c:136
SysTick_DelayUs
void SysTick_DelayUs(uint32_t Us)
Delay n Us.
Definition: misc.c:119
SysTick_CLKSourceConfig
void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource)
Configures the SysTick clock source.
Definition: misc.c:74