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.

35 lines
685 B

  1. /*
  2. SYSTEM MODULE
  3. Copyright (C) 2019 by Xose Pérez <xose dot perez at gmail dot com>
  4. */
  5. #pragma once
  6. #include "espurna.h"
  7. extern "C" {
  8. #include "user_interface.h"
  9. extern struct rst_info resetInfo;
  10. }
  11. uint32_t systemResetReason();
  12. uint8_t systemStabilityCounter();
  13. void systemStabilityCounter(uint8_t count);
  14. void systemCheck(bool stable);
  15. bool systemCheck();
  16. uint32_t systemResetReason();
  17. unsigned char customResetReason();
  18. void customResetReason(unsigned char reason);
  19. void deferredReset(unsigned long delay, unsigned char reason);
  20. bool checkNeedsReset();
  21. unsigned long systemLoadAverage();
  22. bool systemGetHeartbeat();
  23. void systemSendHeartbeat();
  24. void systemSetup();