mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-09-06 01:21:55 +00:00
![Michael Cardell Widerkrantz](/assets/img/avatar_default.png)
Should be more vissible than an eternal loop. Signed-off-by: Daniel Lublin <daniel@lublin.se>
26 lines
483 B
C
26 lines
483 B
C
/*
|
|
* Copyright (C) 2022, 2023 - Tillitis AB
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
*/
|
|
|
|
#include "assert.h"
|
|
#include "led.h"
|
|
#include "lib.h"
|
|
|
|
void __assert_fail(const char *__assertion, const char *__file,
|
|
unsigned int __line, const char *__function)
|
|
{
|
|
htif_puts("assert: ");
|
|
htif_puts(__assertion);
|
|
htif_puts(" ");
|
|
htif_puts(__file);
|
|
htif_puts(":");
|
|
htif_putinthex(__line);
|
|
htif_puts(" ");
|
|
htif_puts(__function);
|
|
htif_lf();
|
|
|
|
forever_redflash();
|
|
// Not reached
|
|
}
|