system_timer.h 537 B

12345678910111213141516171819202122232425262728
  1. //! @file
  2. #ifndef FIRMWARE_SYSTEM_TIMER_H_
  3. #define FIRMWARE_SYSTEM_TIMER_H_
  4. #include "Arduino.h"
  5. #define SYSTEM_TIMER_2
  6. #ifdef SYSTEM_TIMER_2
  7. #include "timer02.h"
  8. #define _millis millis2
  9. #define _micros micros2
  10. #define _delay delay2
  11. #define _tone tone
  12. #define _noTone noTone
  13. #define timer02_set_pwm0(pwm0)
  14. #else //SYSTEM_TIMER_2
  15. #define _millis millis
  16. #define _micros micros
  17. #define _delay delay
  18. #define _tone tone
  19. #define _noTone noTone
  20. #define timer02_set_pwm0(pwm0)
  21. #endif //SYSTEM_TIMER_2
  22. #endif /* FIRMWARE_SYSTEM_TIMER_H_ */