1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-07 16:23:38 +03:00

Added comment on Reset reason

This commit is contained in:
Charles 2016-01-25 00:43:03 +01:00
parent bc82547ddd
commit e455315bbf

View File

@ -23,13 +23,13 @@
#endif #endif
enum rst_reason { enum rst_reason {
REASON_DEFAULT_RST = 0, REASON_DEFAULT_RST = 0, /* normal startup by power on */
REASON_WDT_RST = 1, REASON_WDT_RST = 1, /* hardware watch dog reset */
REASON_EXCEPTION_RST = 2, REASON_EXCEPTION_RST = 2, /* exception reset, GPIO status wont change */
REASON_SOFT_WDT_RST = 3, REASON_SOFT_WDT_RST = 3, /* software watch dog reset, GPIO status wont change */
REASON_SOFT_RESTART = 4, REASON_SOFT_RESTART = 4, /* software restart ,system_restart , GPIO status wont change */
REASON_DEEP_SLEEP_AWAKE = 5, REASON_DEEP_SLEEP_AWAKE = 5, /* wake up from deep-sleep */
REASON_EXT_SYS_RST = 6 REASON_EXT_SYS_RST = 6 /* external system reset */
}; };
struct rst_info{ struct rst_info{