增加定时器中断,提高定时精度
This commit is contained in:
12
include/time0.h
Normal file
12
include/time0.h
Normal file
@ -0,0 +1,12 @@
|
||||
#ifndef _time0_H
|
||||
#define _time0_H
|
||||
|
||||
#include "public.h"
|
||||
|
||||
//定义LED1管脚
|
||||
#define LED1 P2_0
|
||||
|
||||
//函数声明
|
||||
void time0_init(void);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user