Skip to content

Commit e455315

Browse files
committed
Added comment on Reset reason
1 parent bc82547 commit e455315

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tools/sdk/include/user_interface.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
#endif
2424

2525
enum rst_reason {
26-
REASON_DEFAULT_RST = 0,
27-
REASON_WDT_RST = 1,
28-
REASON_EXCEPTION_RST = 2,
29-
REASON_SOFT_WDT_RST = 3,
30-
REASON_SOFT_RESTART = 4,
31-
REASON_DEEP_SLEEP_AWAKE = 5,
32-
REASON_EXT_SYS_RST = 6
26+
REASON_DEFAULT_RST = 0, /* normal startup by power on */
27+
REASON_WDT_RST = 1, /* hardware watch dog reset */
28+
REASON_EXCEPTION_RST = 2, /* exception reset, GPIO status won’t change */
29+
REASON_SOFT_WDT_RST = 3, /* software watch dog reset, GPIO status won’t change */
30+
REASON_SOFT_RESTART = 4, /* software restart ,system_restart , GPIO status won’t change */
31+
REASON_DEEP_SLEEP_AWAKE = 5, /* wake up from deep-sleep */
32+
REASON_EXT_SYS_RST = 6 /* external system reset */
3333
};
3434

3535
struct rst_info{

0 commit comments

Comments
 (0)