tone04.h 477 B

12345678910111213141516171819202122232425
  1. //tone04.h
  2. // use atmega timer4 as main tone timer instead of timer2
  3. // timer2 is used for System timer.
  4. #ifndef TIMER04_H
  5. #define TIMER04_H
  6. #include <inttypes.h>
  7. #if defined(__cplusplus)
  8. extern "C" {
  9. #endif //defined(__cplusplus)
  10. extern void timer4_init(void);
  11. extern void timer4_set_fan0(uint8_t duty);
  12. extern void tone4(uint8_t _pin, uint16_t frequency);
  13. extern void noTone4(uint8_t _pin);
  14. #if defined(__cplusplus)
  15. }
  16. #endif //defined(__cplusplus)
  17. #endif //TIMER02_H