Skip to content

Commit

Permalink
[EFR32] build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Aug 23, 2024
1 parent 1b6a8b1 commit 97c1abf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion software/firmware/source/SoftRF/src/platform/EFR32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,19 @@ static void EFR32_setup()
{
reset_info.reason = REASON_WDT_RST;
}
#if defined(ARDUINO_NANO_MATTER)
else if (reset_cause & EMU_RSTCAUSE_WDOG1) /* Watchdog 1 Reset */
{
reset_info.reason = REASON_WDT_RST;
}
#endif /* ARDUINO_NANO_MATTER */
else if (reset_cause & EMU_RSTCAUSE_LOCKUP) /* M33 Core Lockup Reset */
{
reset_info.reason = REASON_EXCEPTION_RST;
}
else if (reset_cause & EMU_RSTCAUSE_SYSREQ) /* M33 Core Sys Reset */
{
reset_info.reason = REASON_EXCEPTION_RST;
reset_info.reason = REASON_SOFT_RESTART;
}
else if (reset_cause & EMU_RSTCAUSE_DVDDBOD) /* HVBOD Reset */
{
Expand All @@ -160,10 +166,18 @@ static void EFR32_setup()
{
reset_info.reason = REASON_EXCEPTION_RST;
}
#if defined(ARDUINO_NANO_MATTER)
else if (reset_cause & EMU_RSTCAUSE_SETAMPER) /* SE Tamper event Reset */
{
reset_info.reason = REASON_EXCEPTION_RST;
}
#endif /* ARDUINO_NANO_MATTER */
#if defined(ARDUINO_SILABS_BGM220EXPLORERKIT)
else if (reset_cause & EMU_RSTCAUSE_DCI) /* DCI reset */
{
reset_info.reason = REASON_EXCEPTION_RST;
}
#endif /* ARDUINO_SILABS_BGM220EXPLORERKIT */
else if (reset_cause & EMU_RSTCAUSE_VREGIN) /* DCDC VREGIN comparator */
{
reset_info.reason = REASON_EXCEPTION_RST;
Expand Down
2 changes: 1 addition & 1 deletion software/firmware/source/SoftRF/src/platform/EFR32.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ struct rst_info {

#define SOC_GPIO_PIN_LED SOC_UNUSED_PIN
#define SOC_GPIO_PIN_GNSS_PPS D6 /* PB0 */
#define SOC_GPIO_PIN_BATTERY A0
#define SOC_GPIO_PIN_BATTERY SOC_UNUSED_PIN
#define SOC_GPIO_PIN_BUTTON BTN_BUILTIN

#define SOC_GPIO_RADIO_LED_RX SOC_UNUSED_PIN
Expand Down

0 comments on commit 97c1abf

Please sign in to comment.