Files
DCU_APP/GD32E508_DCU_APP/sys/systick.h
T

21 lines
374 B
C++
Raw Normal View History

#ifndef SYS_SYSTICK_H
#define SYS_SYSTICK_H
#include <stdint.h>
/**
* @brief SysTick 时基模块。
* @note 负责 1ms 系统节拍维护与阻塞式毫秒延时。
*/
class SysTickTimer {
public:
static void initMs();
static void delayMs(uint32_t ms);
static void onInterrupt();
private:
static volatile uint32_t s_ms;
};
#endif /* SYS_SYSTICK_H */