Fork of the espurna firmware for `mhsw` switches
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.

17 lines
874 B

  1. # RTC support module
  2. ## commands in debug terminal
  3. - RTC return current rtc time
  4. - RTC YYYY-MM-DD DoW HH:MM:SS setup rtc
  5. ## defines to enable support for modules in hardware.h
  6. - #define RTC_SUPPORT 0/1 enable/disable RTC support
  7. - #define RTC_PROVIDER RTC_PROVIDER_DS3231 etc... spec which rtc ic to use
  8. - #define RTC_RECOVERY_CNT 10(def) // 0 no attempt to switch back to NTP time
  9. - #define RTC_NTP_SYNC_ENA 0/1 // 0 independed rtc, not synced with ntp,
  10. 1 rtc synced with ntp on ntp success
  11. ## to add new rtc ic support
  12. - see ds3231.h as example, create your_ic.h file and write two
  13. functions time_t getTime_rtc() and uint8_t setTime_rtc(time_t nt)
  14. - define your provider constant in config/types.h
  15. - add your provider section in config/rtc.h