📄 timer2.h
字号:
//timer2.h
typedef union
{
struct
{
unsigned b1ms :1;
unsigned bt1ms :1;
unsigned b10ms :1;
unsigned bt10ms :1;
// unsigned b100ms :1;
// unsigned bt100ms :1;
}bits;
uint allbits;
}TIMEBASESTRCUT;
//volatile TIMEBASESTRCUT timeBase;
typedef union
{
struct
{
unsigned once128ms :1;
unsigned refurbish :1;
}bits;
uint allbits;
}LEDCONTROL;
//volatile LEDCONTROL ledControl;
extern volatile TIMEBASESTRCUT timeBase;
extern volatile LEDCONTROL ledControl;
//extern uchar var_a,var_b;
extern void timer2_init(void);
extern void time_mission(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -