AP_HAL_ESP32: __RAMFUNC__ maps to IRAM_ATTR

dagery_ua found this and reported it in Discord
This commit is contained in:
David Buzz 2024-08-13 12:54:21 +10:00 committed by Thomas Watson
parent d5e33a7026
commit fd8c470120
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@
#define __LITTLE_ENDIAN 1234
#define __BYTE_ORDER __LITTLE_ENDIAN
// ArduPilot uses __RAMFUNC__ to place functions in fast instruction RAM
#define __RAMFUNC__ IRAM_ATTR
// whenver u get ... error: "xxxxxxx" is not defined, evaluates to 0 [-Werror=undef] just define it below as 0
#define CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY 0
#define XCHAL_ERRATUM_453 0