1234567891011121314151617181920212223242526272829303132 |
- //timer02.h
- // use atmega timer2 as main system timer instead of timer0
- // timer0 is used for fast pwm (OC0B output)
- // original OVF handler is disabled
- #ifndef TIMER02_H
- #define TIMER02_H
- #include <inttypes.h>
- #if defined(__cplusplus)
- extern "C" {
- #endif //defined(__cplusplus)
- extern uint8_t timer02_pwm0;
- extern void timer02_set_pwm0(uint8_t pwm0);
- extern void timer02_init(void);
- extern unsigned long millis2(void);
- extern unsigned long micros2(void);
- extern void delay2(unsigned long ms);
- #if defined(__cplusplus)
- }
- #endif //defined(__cplusplus)
- #endif //TIMER02_H
|