nRF5 SDK for Mesh v5.0.0
38 #ifndef NRF_MESH_ASSERT_GCC_H__ 39 #define NRF_MESH_ASSERT_GCC_H__ 47 #ifndef NRF_MESH_ASSERT_H__ 48 #error "This file should only be included by nrf_mesh_assert.h, not directly." 52 #error "This file should only be included when compiling with GCC." 58 #define HARD_FAULT() __builtin_trap() 64 #define GET_PC(pc) pc = 0xffffffff 69 #define HARD_FAULT() __asm__ volatile(".inst.n 0xde00\n") 75 #define GET_PC(pc) __asm__ volatile("mov %0, pc\n\t" : "=r" (pc))