nRF5 SDK for Mesh v1.0.1
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))