mirror of https://github.com/arendst/Tasmota.git
more adaptions for ESP32-compatibility of BearSSL
This commit is contained in:
parent
4e7e6ce7d3
commit
414e5f382c
|
@ -14,6 +14,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef ESP32
|
||||
#ifndef ICACHE_RODATA_ATTR
|
||||
#define ICACHE_RODATA_ATTR __attribute__((section(".irom.text")))
|
||||
#endif
|
||||
|
@ -29,6 +30,7 @@ extern "C" {
|
|||
// Place each progmem object into its own named section, avoiding conflicts
|
||||
#define PROGMEM __attribute__((section( "\".irom.text." __FILE__ "." __STRINGIZE(__LINE__) "." __STRINGIZE(__COUNTER__) "\"")))
|
||||
#endif
|
||||
#endif //ESP32
|
||||
#ifndef PGM_P
|
||||
#define PGM_P const char *
|
||||
#endif
|
||||
|
|
|
@ -7,13 +7,19 @@
|
|||
#define __ets__
|
||||
#endif
|
||||
|
||||
#ifndef ESP32
|
||||
#ifndef ICACHE_FLASH
|
||||
#define ICACHE_FLASH
|
||||
#endif
|
||||
|
||||
#ifndef ESP8266
|
||||
#define ESP8266
|
||||
#else
|
||||
#ifndef PROGMEM
|
||||
#define PROGMEM
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// #ifndef ESP8266
|
||||
// #define ESP8266
|
||||
// #endif
|
||||
|
||||
#ifndef BR_SLOW_MUL15
|
||||
#define BR_SLOW_MUL15 1 // shrinks EC code by 8.5k
|
||||
|
|
Loading…
Reference in New Issue