system_timer.h 559 B

1234567891011121314151617181920212223242526272829
  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. #include "tone04.h"
  9. #define _millis millis2
  10. #define _micros micros2
  11. #define _delay delay2
  12. #define _tone tone4
  13. #define _noTone noTone4
  14. #define timer02_set_pwm0(pwm0)
  15. #else //SYSTEM_TIMER_2
  16. #define _millis millis
  17. #define _micros micros
  18. #define _delay delay
  19. #define _tone tone
  20. #define _noTone noTone
  21. #define timer02_set_pwm0(pwm0)
  22. #endif //SYSTEM_TIMER_2
  23. #endif /* FIRMWARE_SYSTEM_TIMER_H_ */