1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-15 19:22:45 +03:00

Implement global init for esp8266

This commit is contained in:
Ivan Grokhotkov
2014-11-21 18:14:45 +03:00
parent c55b5a89eb
commit e199fc349c
2 changed files with 64 additions and 8 deletions

View File

@@ -17,19 +17,29 @@
*/
#include <stdlib.h>
extern "C"
{
#include "ets_sys.h"
}
extern "C" void __cxa_pure_virtual(void) __attribute__ ((__noreturn__));
extern "C" void __cxa_deleted_virtual(void) __attribute__ ((__noreturn__));
extern "C" void abort()
{
os_printf(" x_x ");
while(true){}
}
void __cxa_pure_virtual(void) {
// We might want to write some diagnostics to uart in this case
//std::terminate();
while(true) {}
abort();
}
void __cxa_deleted_virtual(void) {
// We might want to write some diagnostics to uart in this case
//std::terminate();
while(true) {}
abort();
}