19 lines
374 B
C++
19 lines
374 B
C++
#ifndef DEVICE_TIMER_H
|
|||
|
|
#define DEVICE_TIMER_H
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief 用户调度定时器模块。
|
||
|
|
* @note 负责建立 100us 基准节拍,并通过中断驱动任务调度器。
|
||
|
|
*/
|
||
|
|
class SchedulerTimer {
|
||
|
|
public:
|
||
|
|
static void init();
|
||
|
|
static void onInterrupt();
|
||
|
|
|
||
|
|
private:
|
||
|
|
static void configureTimer();
|
||
|
|
static void configureNvic();
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif /* DEVICE_TIMER_H */
|