This commit is contained in:
hathach committed 2018-11-02 19:57:34 +07:00
1 parent a265ec7b81
commit 9a4d94f485
4 files changed
+9 -4

No files matched your search

+8
View File
@@ -56,6 +56,12 @@ extern uint32_t __StackLimit[];
extern "C"
{
void HardFault_Handler(void)
{
// reset on hardfault
NVIC_SystemReset();
}
int cprintf(const char * format, ...)
{
char buf[256];
@@ -65,6 +71,8 @@ int cprintf(const char * format, ...)
va_start(ap, format);
len = vsnprintf(buf, 256, format, ap);
// SEGGER_SYSVIEW_Print(buf);
Serial.write(buf, len);
va_end(ap);