feat(newlib): Add abort function

This commit is contained in:
Zhang Jun Hao
2018-06-23 18:31:52 +08:00
parent 3f9a75be5b
commit 569cf70fea

View File

@ -20,6 +20,7 @@
#include "esp8266/eagle_soc.h"
#include "esp8266/uart_register.h"
#include "FreeRTOS.h"
#include "esp_log.h"
#define PANIC_UART 0
@ -126,3 +127,9 @@ void _exit(int status)
{
while (1);
}
void abort(void)
{
ESP_LOGE("ABORT","Error found and abort!");
while(1);
}