2019-01-28 18:29:31 +00:00
|
|
|
//! @file
|
|
|
|
|
|
|
|
#ifndef FIRMWARE_SYSTEM_TIMER_H_
|
|
|
|
#define FIRMWARE_SYSTEM_TIMER_H_
|
|
|
|
|
|
|
|
#include "Arduino.h"
|
2019-07-08 14:42:21 +00:00
|
|
|
#define SYSTEM_TIMER_2
|
2019-01-28 18:29:31 +00:00
|
|
|
|
|
|
|
#ifdef SYSTEM_TIMER_2
|
|
|
|
#include "timer02.h"
|
|
|
|
#define _millis millis2
|
|
|
|
#define _micros micros2
|
|
|
|
#define _delay delay2
|
2019-02-05 18:08:57 +00:00
|
|
|
#define _tone tone2
|
|
|
|
#define _noTone noTone2
|
2019-07-08 14:42:21 +00:00
|
|
|
|
|
|
|
#define timer02_set_pwm0(pwm0)
|
|
|
|
|
2019-01-28 18:29:31 +00:00
|
|
|
#else //SYSTEM_TIMER_2
|
|
|
|
#define _millis millis
|
|
|
|
#define _micros micros
|
|
|
|
#define _delay delay
|
2019-07-08 14:42:21 +00:00
|
|
|
#define _tone(x, y) /*tone*/
|
|
|
|
#define _noTone(x) /*noTone*/
|
2019-01-28 18:29:31 +00:00
|
|
|
#define timer02_set_pwm0(pwm0)
|
|
|
|
#endif //SYSTEM_TIMER_2
|
|
|
|
|
|
|
|
#endif /* FIRMWARE_SYSTEM_TIMER_H_ */
|