增加精确延时函数

This commit is contained in:
2024-07-15 03:07:57 +08:00
parent 066d3681f5
commit f82554f500
3 changed files with 65 additions and 0 deletions

12
include/time0.h Normal file
View File

@ -0,0 +1,12 @@
#ifndef _time0_H
#define _time0_H
#include "public.h"
extern u16 time0_delay_cnt;
//函数声明
void time0_init(void);
void time0_delay1ms(u16 n);
#endif