Merge develop into main (#353)
## TactilityC - Add `tt_lvgl_lock()` and `tt_lvgl_unlock()` - Add `tt_thread_set_affinity()` - Add support for STL symbols ## Other - Add `Thread::setAffinity()` - `GuiService`: replace `#define` with `constexpr` - Remove log storage and log app for now - Split up ELF symbols into more groups
This commit is contained in:
committed by
GitHub
parent
c7621b5e4c
commit
b214a3358e
@@ -0,0 +1,22 @@
|
||||
#include <symbols/esp_event.h>
|
||||
#include <esp_event.h>
|
||||
|
||||
const esp_elfsym esp_event_symbols[] = {
|
||||
ESP_ELFSYM_EXPORT(esp_event_loop_create),
|
||||
ESP_ELFSYM_EXPORT(esp_event_loop_delete),
|
||||
ESP_ELFSYM_EXPORT(esp_event_loop_create_default),
|
||||
ESP_ELFSYM_EXPORT(esp_event_loop_delete_default),
|
||||
ESP_ELFSYM_EXPORT(esp_event_loop_run),
|
||||
ESP_ELFSYM_EXPORT(esp_event_handler_register),
|
||||
ESP_ELFSYM_EXPORT(esp_event_handler_register_with),
|
||||
ESP_ELFSYM_EXPORT(esp_event_handler_instance_register_with),
|
||||
ESP_ELFSYM_EXPORT(esp_event_handler_instance_register),
|
||||
ESP_ELFSYM_EXPORT(esp_event_handler_unregister),
|
||||
ESP_ELFSYM_EXPORT(esp_event_handler_unregister_with),
|
||||
ESP_ELFSYM_EXPORT(esp_event_handler_instance_unregister_with),
|
||||
ESP_ELFSYM_EXPORT(esp_event_handler_instance_unregister),
|
||||
ESP_ELFSYM_EXPORT(esp_event_post),
|
||||
ESP_ELFSYM_EXPORT(esp_event_post_to),
|
||||
ESP_ELFSYM_EXPORT(esp_event_isr_post),
|
||||
ESP_ELFSYM_EXPORT(esp_event_isr_post_to),
|
||||
};
|
||||
@@ -0,0 +1,46 @@
|
||||
#include <symbols/esp_http_client.h>
|
||||
#include <esp_http_client.h>
|
||||
|
||||
const esp_elfsym esp_http_client_symbols[] = {
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_init),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_perform),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_cancel_request),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_set_url),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_set_post_field),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_post_field),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_set_header),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_header),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_username),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_set_username),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_password),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_set_password),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_cancel_request),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_set_authtype),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_user_data),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_set_user_data),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_errno),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_and_clear_last_tls_error),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_set_method),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_set_timeout_ms),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_delete_header),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_delete_all_headers),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_open),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_write),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_fetch_headers),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_is_chunked_response),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_read),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_status_code),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_content_length),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_close),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_cleanup),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_get_transport_type),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_set_redirection),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_reset_redirect_counter),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_set_auth_data),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_add_auth),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_is_complete_data_received),
|
||||
ESP_ELFSYM_EXPORT(esp_http_client_read_response),
|
||||
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),
|
||||
};
|
||||
@@ -1,10 +1,10 @@
|
||||
#include <cstdlib>
|
||||
#include <symbols/gcc_soft_float.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
// Reference: https://gcc.gnu.org/onlinedocs/gccint/Soft-float-library-routines.html
|
||||
|
||||
extern "C" {
|
||||
|
||||
extern float __addsf3(float a, float b);
|
||||
extern double __adddf3(double a, double b);
|
||||
// extern long double __addtf3(long double a, long double b);
|
||||
@@ -139,6 +139,8 @@ int __gtsf2(float a, float b);
|
||||
int __gtdf2(double a, double b);
|
||||
// int __gttf2(long double a, long double b);
|
||||
|
||||
}
|
||||
|
||||
const esp_elfsym gcc_soft_float_symbols[] = {
|
||||
ESP_ELFSYM_EXPORT(__addsf3),
|
||||
ESP_ELFSYM_EXPORT(__adddf3),
|
||||
@@ -276,5 +278,3 @@ const esp_elfsym gcc_soft_float_symbols[] = {
|
||||
|
||||
ESP_ELFSYM_END
|
||||
};
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
#include <symbols/pthread.h>
|
||||
#include <pthread.h>
|
||||
|
||||
const esp_elfsym pthread_symbols[] = {
|
||||
ESP_ELFSYM_EXPORT(pthread_create),
|
||||
ESP_ELFSYM_EXPORT(pthread_attr_init),
|
||||
ESP_ELFSYM_EXPORT(pthread_attr_setstacksize),
|
||||
ESP_ELFSYM_EXPORT(pthread_detach),
|
||||
ESP_ELFSYM_EXPORT(pthread_join),
|
||||
ESP_ELFSYM_EXPORT(pthread_exit),
|
||||
};
|
||||
@@ -0,0 +1,18 @@
|
||||
#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) },
|
||||
{ "_ZSt28__throw_bad_array_new_lengthv", (void*)&(std::__throw_bad_array_new_length) },
|
||||
{ "_ZSt17__throw_bad_allocv", (void*)&(std::__throw_bad_alloc) }
|
||||
// { "", (void*)&(std::) },
|
||||
};
|
||||
Reference in New Issue
Block a user