misc NRF52 fixes

This commit is contained in:
geeksville
2020-04-23 12:47:41 -07:00
parent 2061706c11
commit fe3cbeed3a
7 changed files with 37 additions and 7 deletions

13
src/bare/main-nrf52.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include <assert.h>
static inline void debugger_break(void)
{
__asm volatile("bkpt #0x01\n\t"
"mov pc, lr\n\t");
}
// handle standard gcc assert failures
void __attribute__((noreturn)) __assert_func(const char *file, int line, const char *func, const char *failedexpr)
{
debugger_break();
}