Naze32 clone with Frysky receiver
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

timer.h 361B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Time-Keeping helper
  3. */
  4. #ifndef _TIMER_H
  5. #define _TIMER_H
  6. #include <stdint.h>
  7. #ifdef __AVR__
  8. typedef uint64_t time_t;
  9. #include <util/delay.h>
  10. #define delay_us(x) _delay_us(x)
  11. #define delay_ms(x) _delay_ms(x)
  12. #else
  13. typedef long int time_t;
  14. void delay_us(int x);
  15. void delay_ms(int x);
  16. #endif
  17. void timerInit(void);
  18. time_t timerGet(void);
  19. #endif