LPC11C24 printing a scary message when the app fails

This commit is contained in:
Pavel Kirienko
2015-10-13 17:01:21 +03:00
parent b94246237d
commit d7bd5fc28b
@@ -137,6 +137,9 @@ void init()
void die()
{
static const volatile unsigned& DHCSR = *reinterpret_cast<unsigned*>(0xE000EDF0U);
syslog("FATAL\r\n");
while (true)
{
if ((DHCSR & 1U) != 0)