|
typedef enum
{
SUNXI_TMR0 = 0,
SUNXI_TMR1,
SUNXI_TMR2,
SUNXI_TMR3,
SUNXI_TMR4,
SUNXI_TMR_NUM,
} hal_timer_id_t;
void hal_timer_init(hal_timer_id_t timer);
void hal_timer_uninit(hal_timer_id_t timer);
void hal_timer_stop(hal_timer_id_t timer);
void hal_timer_start(hal_timer_id_t timer, bool periodic);
hal_timer_status_t hal_timer_set_oneshot(hal_timer_id_t timer, uint32_t delay_us, timer_callback callback, void *callback_param);
hal_timer_status_t hal_timer_set_periodic(hal_timer_id_t timer, uint32_t delay_us, timer_callback callback, void *callback_param);
T113 有 5 个 Timer 吗? 手册上写 有 2 个 32 位定时器,2 个高速定时器。
|
|