mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-01 08:09:49 +08:00
feat(newlib): Add abort function
This commit is contained in:
@ -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);
|
||||
}
|
Reference in New Issue
Block a user