system_timer.h 506 B

12345678910111213141516171819202122232425
  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 tone2
  12. #define _noTone noTone2
  13. #else //SYSTEM_TIMER_2
  14. #define _millis millis
  15. #define _micros micros
  16. #define _delay delay
  17. #define _tone tone
  18. #define _noTone noTone
  19. #define timer02_set_pwm0(pwm0)
  20. #endif //SYSTEM_TIMER_2
  21. #endif /* FIRMWARE_SYSTEM_TIMER_H_ */