27 lines
511 B
Plaintext
27 lines
511 B
Plaintext
/**
|
|||
|
|
* @file systick.h
|
||
|
|
* @brief SysTick 时基配置与毫秒延时接口定义。
|
||
|
|
*/
|
||
|
|
#ifndef SYS_SYSTICK_H
|
||
|
|
#define SYS_SYSTICK_H
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief 配置 SysTick 为 1ms 系统节拍。
|
||
|
|
* @param[in] 无。
|
||
|
|
* @param[out] 无。
|
||
|
|
* @retval 无返回值。
|
||
|
|
*/
|
||
|
|
void systick_config_ms(void);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief 执行阻塞式毫秒延时。
|
||
|
|
* @param[in] ms 需要延时的毫秒数。
|
||
|
|
* @param[out] 无。
|
||
|
|
* @retval 无返回值。
|
||
|
|
*/
|
||
|
|
void delay_ms(uint32_t ms);
|
||
|
|
|
||
|
|
#endif /* SYS_SYSTICK_H */
|