diff --git a/libraries/AP_HAL/board/esp32.h b/libraries/AP_HAL/board/esp32.h index 1969a0066f..e927165b8c 100644 --- a/libraries/AP_HAL/board/esp32.h +++ b/libraries/AP_HAL/board/esp32.h @@ -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