Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions tests/boards/nrf/hwinfo/reset_cause/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ static void print_supported_reset_cause(void)
} else {
LOG_INF("14: no support for RESET_TEMPERATURE");
}
if (supported & RESET_BOOTLOADER) {
LOG_INF("15: RESET_BOOTLOADER is supported");
} else {
LOG_INF("15: no support for RESET_BOOTLOADER");
}
if (supported & RESET_FLASH) {
LOG_INF("16: RESET_FLASH is supported");
} else {
LOG_INF("16: no support for RESET_FLASH");
}
} else if (ret == -ENOSYS) {
LOG_INF("hwinfo_get_supported_reset_cause() is NOT supported");
supported = 0;
Expand Down Expand Up @@ -197,6 +207,12 @@ static void print_current_reset_cause(uint32_t *cause)
if (*cause & RESET_TEMPERATURE) {
LOG_INF("14: reset due to RESET_TEMPERATURE");
}
if (*cause & RESET_BOOTLOADER) {
LOG_INF("15: reset due to RESET_BOOTLOADER");
}
if (*cause & RESET_FLASH) {
LOG_INF("16: reset due to RESET_FLASH");
}
} else if (ret == -ENOSYS) {
LOG_INF("hwinfo_get_reset_cause() is NOT supported");
*cause = 0;
Expand Down