Merge develop into main (#365)
### TactilityC - Create UART HAL - Refactor locking APIs - Bind new C++ functionality - Bind new LVGL functionality ### Apps - Remove Serial Console as it has been ported as an external app
This commit is contained in:
committed by
GitHub
parent
17b4fc6a47
commit
d25603166a
@@ -0,0 +1,18 @@
|
||||
#include <private/elf_symbol.h>
|
||||
#include <cstddef>
|
||||
|
||||
#include <symbols/cplusplus.h>
|
||||
|
||||
extern "C" {
|
||||
extern void* _Znwj(uint32_t size); // operator new(unsigned int)
|
||||
extern void _ZdlPvj(void* p, uint64_t size); // operator delete(void*, unsigned int)
|
||||
extern void __cxa_pure_virtual();
|
||||
}
|
||||
|
||||
const esp_elfsym cplusplus_symbols[] = {
|
||||
ESP_ELFSYM_EXPORT(_Znwj), // operator new(unsigned int)
|
||||
ESP_ELFSYM_EXPORT(_ZdlPvj), // operator delete(void*, unsigned int)
|
||||
ESP_ELFSYM_EXPORT(__cxa_pure_virtual), // class-related, see https://arobenko.github.io/bare_metal_cpp/
|
||||
// delimiter
|
||||
ESP_ELFSYM_END
|
||||
};
|
||||
@@ -1,4 +1,8 @@
|
||||
#include <private/elf_symbol.h>
|
||||
#include <cstddef>
|
||||
|
||||
#include <symbols/esp_event.h>
|
||||
|
||||
#include <esp_event.h>
|
||||
|
||||
const esp_elfsym esp_event_symbols[] = {
|
||||
@@ -19,4 +23,6 @@ const esp_elfsym esp_event_symbols[] = {
|
||||
ESP_ELFSYM_EXPORT(esp_event_post_to),
|
||||
ESP_ELFSYM_EXPORT(esp_event_isr_post),
|
||||
ESP_ELFSYM_EXPORT(esp_event_isr_post_to),
|
||||
// delimiter
|
||||
ESP_ELFSYM_END
|
||||
};
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#include <private/elf_symbol.h>
|
||||
#include <cstddef>
|
||||
|
||||
#include <symbols/esp_http_client.h>
|
||||
|
||||
#include <esp_http_client.h>
|
||||
|
||||
const esp_elfsym esp_http_client_symbols[] = {
|
||||
@@ -43,4 +47,6 @@ const esp_elfsym esp_http_client_symbols[] = {
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_flush_response),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_url),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_chunk_length),
|
||||
// delimiter
|
||||
ESP_ELFSYM_END
|
||||
};
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#include <cstdlib>
|
||||
#include <private/elf_symbol.h>
|
||||
#include <cstddef>
|
||||
|
||||
#include <symbols/gcc_soft_float.h>
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
// Reference: https://gcc.gnu.org/onlinedocs/gccint/Soft-float-library-routines.html
|
||||
|
||||
extern "C" {
|
||||
@@ -139,7 +143,7 @@ int __gtsf2(float a, float b);
|
||||
int __gtdf2(double a, double b);
|
||||
// int __gttf2(long double a, long double b);
|
||||
|
||||
}
|
||||
} // extern "C"
|
||||
|
||||
const esp_elfsym gcc_soft_float_symbols[] = {
|
||||
ESP_ELFSYM_EXPORT(__addsf3),
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#include <private/elf_symbol.h>
|
||||
#include <cstddef>
|
||||
|
||||
#include <symbols/pthread.h>
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
const esp_elfsym pthread_symbols[] = {
|
||||
@@ -8,4 +12,6 @@ const esp_elfsym pthread_symbols[] = {
|
||||
ESP_ELFSYM_EXPORT(pthread_detach),
|
||||
ESP_ELFSYM_EXPORT(pthread_join),
|
||||
ESP_ELFSYM_EXPORT(pthread_exit),
|
||||
// delimiter
|
||||
ESP_ELFSYM_END
|
||||
};
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
#include <private/elf_symbol.h>
|
||||
#include <cstddef>
|
||||
|
||||
#include <symbols/stl.h>
|
||||
|
||||
#include <bits/functexcept.h>
|
||||
|
||||
extern "C" {
|
||||
extern void* _Znwj(uint32_t size); // operator new(unsigned int)
|
||||
extern void _ZdlPvj(void* p, uint64_t size); // operator delete(void*, unsigned int)
|
||||
}
|
||||
|
||||
const esp_elfsym stl_symbols[] = {
|
||||
ESP_ELFSYM_EXPORT(_Znwj), // operator new(unsigned int)
|
||||
ESP_ELFSYM_EXPORT(_ZdlPvj), // operator delete(void*, unsigned int)
|
||||
// Note: You have to use the mangled names here
|
||||
{ "_ZSt20__throw_length_errorPKc", (void*)&(std::__throw_length_error) },
|
||||
{ "_ZSt17__throw_bad_allocv", (void*)&(std::__throw_bad_alloc) },
|
||||
{ "_ZSt28__throw_bad_array_new_lengthv", (void*)&(std::__throw_bad_array_new_length) },
|
||||
{ "_ZSt17__throw_bad_allocv", (void*)&(std::__throw_bad_alloc) }
|
||||
{ "_ZSt25__throw_bad_function_callv", (void*)&(std::__throw_bad_function_call) },
|
||||
{ "_ZSt20__throw_length_errorPKc", (void*)&(std::__throw_length_error) },
|
||||
// { "", (void*)&(std::) },
|
||||
// delimiter
|
||||
ESP_ELFSYM_END
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user