mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
LPC11C24 - break on die()
This commit is contained in:
parent
6f782b2be2
commit
d9ca67c84c
@ -134,7 +134,14 @@ void init()
|
||||
|
||||
void die()
|
||||
{
|
||||
while (true) { }
|
||||
static const volatile unsigned& DHCSR = *reinterpret_cast<unsigned*>(0xE000EDF0U);
|
||||
while (true)
|
||||
{
|
||||
if ((DHCSR & 1U) != 0)
|
||||
{
|
||||
__asm volatile ("bkpt #0\n"); // Break into the debugger
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if __GNUC__
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user