Skip to content

Commit 93cc541

Browse files
committed
while
1 parent 6fb16ab commit 93cc541

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/zephyr/arch/arm/error.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ extern "C" {
3535
*/
3636
#define ARCH_EXCEPT(reason_p) \
3737
do {\
38+
while(1) {}; \
3839
arch_irq_unlock(0); \
3940
__asm__ volatile( \
4041
"mov r0, %[_reason]\n" \

modules/hal_nordic/nrf_802154/include/nrf_802154_assert_zephyr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
extern void nrf_802154_assert_handler(void);
1919

2020
#define NRF_802154_ASSERT(condition) \
21-
do { \
22-
if (!(condition)) { \
21+
do { \
22+
if (!(condition)) { while(1) {}; \
2323
nrf_802154_assert_handler(); \
2424
} \
2525
} while (0)

0 commit comments

Comments
 (0)