clock.h 571 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #ifndef _CLOCK_H
  3. #define _CLOCK_H
  4. /* Includes */
  5. #include "main.h"
  6. /* macro */
  7. #define FADE_START 0
  8. #define FADE_STOP 15
  9. #define FADE_STEP 1
  10. /* time constant in ms */
  11. #define BTN_SCAN_PERIOD 10
  12. #define BTN_SCAN_PAUSE 200
  13. #define BTN_TIME_PRESSED 30
  14. #define BTN_TIME_HOLDED 500
  15. #define BTN_TIME_REPEATED 50
  16. /* Display timeout, sec */
  17. #define DISP_WDT_TIME 10
  18. /* variables */
  19. extern rtc_t Clock;
  20. /* function prototypes */
  21. //void Clock_Init(void);
  22. void btnProcess(void);
  23. void new_Second(void);
  24. #endif /* _CLOCK_H */