include/tinyara/reboot_reason : Rearrange the reboot reason codes
[Reboot Reason Code]
System : 0 ~ 29,
Network : 30 ~ 59,
Common Service : 60 ~ 89,
App : 90 ~ 254
#include <sys/prctl.h>
typedef enum {
+ /* [Reboot Reason Code]
+ * System : 0 ~ 29,
+ * Network : 30 ~ 59,
+ * Common Service : 60 ~ 89,
+ * App : 90 ~ 254
+ */
REBOOT_REASON_INITIALIZED = 0,
REBOOT_SYSTEM_DATAABORT = 1, /* Data abort */
REBOOT_SYSTEM_PREFETCHABORT = 2, /* Prefetch abort */
@@ -31,11 +37,13 @@ typedef enum {
REBOOT_SYSTEM_WATCHDOG = 4, /* Watchdog timeout */
REBOOT_SYSTEM_HW_RESET = 5, /* HW power reset */
REBOOT_SYSTEM_USER_INTENDED = 6, /* Reboot from user intention */
- REBOOT_SYSTEM_WIFICORE_WATCHDOG = 11, /* Wi-Fi Core Watchdog Reset */
- REBOOT_SYSTEM_WIFICORE_PANIC = 12, /* Wi-Fi Core Panic */
- REBOOT_SYSTEM_BINARY_UPDATE = 34, /* Reboot for Binary Update */
- REBOOT_SYSTEM_BINARY_RECOVERYFAIL = 35, /* Binary Recovery Fail */
- REBOOT_UNKNOWN = 99,
+ REBOOT_SYSTEM_BINARY_UPDATE = 7, /* Reboot for Binary Update */
+ REBOOT_SYSTEM_BINARY_RECOVERYFAIL = 8, /* Binary Recovery Fail */
+
+ REBOOT_NETWORK_WIFICORE_WATCHDOG = 30, /* Wi-Fi Core Watchdog Reset */
+ REBOOT_NETWORK_WIFICORE_PANIC = 31, /* Wi-Fi Core Panic */
+
+ REBOOT_UNKNOWN = 255,
} reboot_reason_code_t;
#define WRITE_REBOOT_REASON(x) do { \
