35 #ifndef OT_PLATFORM_MISC_H 36 #define OT_PLATFORM_MISC_H 1 72 OT_PLAT_RESET_REASON_POWER_ON = 0,
73 OT_PLAT_RESET_REASON_EXTERNAL = 1,
74 OT_PLAT_RESET_REASON_SOFTWARE = 2,
75 OT_PLAT_RESET_REASON_FAULT = 3,
76 OT_PLAT_RESET_REASON_CRASH = 4,
77 OT_PLAT_RESET_REASON_ASSERT = 5,
78 OT_PLAT_RESET_REASON_OTHER = 6,
79 OT_PLAT_RESET_REASON_UNKNOWN = 7,
80 OT_PLAT_RESET_REASON_WATCHDOG = 8,
82 OT_PLAT_RESET_REASON_COUNT,
118 #endif // OT_PLATFORM_MISC_H void otPlatAssertFail(const char *aFilename, int aLineNumber)
This function provides a platform specific implementation for assert.
This type represents all the static / global variables used by OpenThread allocated in one place...
Definition: openthread-instance.h:59
This file defines the types and structures used in the OpenThread library API.
void otPlatReset(otInstance *aInstance)
This function performs a software reset on the platform, if supported.
void otPlatWakeHost(void)
This function performs a platform specific operation to wake the host MCU.
otPlatResetReason
Enumeration of possible reset reason codes.
Definition: misc.h:70
otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
This function returns the reason for the last platform reset.