system_timer.h 420 B

123456789101112131415161718192021
  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. #else //SYSTEM_TIMER_2
  12. #define _millis millis
  13. #define _micros micros
  14. #define _delay delay
  15. #define timer02_set_pwm0(pwm0)
  16. #endif //SYSTEM_TIMER_2
  17. #endif /* FIRMWARE_SYSTEM_TIMER_H_ */