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.

25 lines
486 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 <cstdint>
  7. uint32_t systemResetReason();
  8. uint8_t systemStabilityCounter();
  9. void systemStabilityCounter(uint8_t count);
  10. void systemCheck(bool stable);
  11. bool systemCheck();
  12. uint32_t systemResetReason();
  13. unsigned char customResetReason();
  14. void customResetReason(unsigned char reason);
  15. void deferredReset(unsigned long delay, unsigned char reason);
  16. bool checkNeedsReset();