This commit is contained in:
huxi
2025-12-03 11:12:34 +08:00
parent c23ae4f24c
commit bc195654bf
8163 changed files with 3799544 additions and 92 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef __TIMER_H__
#define __TIMER_H__
#include "typedef.h"
#include "p11_gptimer.h"
#define USR_TMR GPTIMER1
void timer_suspend(void);
void timer_resume(u32 usec);
void timer_stop(void);
void timer_run(u32 period_ms);
void timer_init();
_INLINE_ u32 timer_get_jiffies();
_INLINE_ u64 timer_get_sys_tick_time_us(void);
void timer_set_clock_source(u32 clk);
void timer_dump();
#endif