timer1._h
来自「用的avr icc 开发的atmega16的超声波测距仪模型。」· _H 代码 · 共 23 行
_H
23 行
#ifndef TIMER1_H
#define TIMER1_H
#ifdef TIMER1_C
//TIMER1 initialisation - prescale:64
// WGM: 0) Normal, TOP=0xFFFF
// desired value: 200000uSec
// actual value: 200000.000uSec (0.0%)
// unsigned int capt_timer1;//capt isr data
void timer1_init(void);
void timer1_capt_isr(void);
void timer1_ovf_isr(void);
void timer1_start(void);
void timer1_stop(void);
#else
extern void timer1_init(void);
extern void timer1_capt_isr(void);
extern void timer1_ovf_isr(void);
extern void timer1_start(void);
extern void timer1_stop(void);
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?