mirror of
https://github.com/espressif/openthread.git
synced 2026-09-15 13:40:06 +00:00
[efr32] use OT_PLAT_RESET_REASON_OTHER for brown-out/EM4 reset (#5699)
This commit is contained in:
@@ -84,7 +84,7 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
|||||||
(sResetCause & EMU_RSTCAUSE_DVDDBOD) || (sResetCause & EMU_RSTCAUSE_DVDDLEBOD) ||
|
(sResetCause & EMU_RSTCAUSE_DVDDBOD) || (sResetCause & EMU_RSTCAUSE_DVDDLEBOD) ||
|
||||||
(sResetCause & EMU_RSTCAUSE_EM4))
|
(sResetCause & EMU_RSTCAUSE_EM4))
|
||||||
{
|
{
|
||||||
reason = OT_PLAT_RESET_REASON_ASSERT;
|
reason = OT_PLAT_RESET_REASON_OTHER;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(_RMU_RSTCAUSE_MASK)
|
#if defined(_RMU_RSTCAUSE_MASK)
|
||||||
@@ -111,7 +111,7 @@ otPlatResetReason otPlatGetResetReason(otInstance *aInstance)
|
|||||||
else if ((sResetCause & RMU_RSTCAUSE_AVDDBOD) || (sResetCause & RMU_RSTCAUSE_DECBOD) ||
|
else if ((sResetCause & RMU_RSTCAUSE_AVDDBOD) || (sResetCause & RMU_RSTCAUSE_DECBOD) ||
|
||||||
(sResetCause & RMU_RSTCAUSE_DVDDBOD) || (sResetCause & RMU_RSTCAUSE_EM4RST))
|
(sResetCause & RMU_RSTCAUSE_DVDDBOD) || (sResetCause & RMU_RSTCAUSE_EM4RST))
|
||||||
{
|
{
|
||||||
reason = OT_PLAT_RESET_REASON_ASSERT;
|
reason = OT_PLAT_RESET_REASON_OTHER;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return reason;
|
return reason;
|
||||||
|
|||||||
Reference in New Issue
Block a user