Skip to content

Commit

Permalink
AP_HAL_ESP32: __RAMFUNC__ maps to IRAM_ATTR
Browse files Browse the repository at this point in the history
dagery_ua found this and reported it in Discord
  • Loading branch information
davidbuzz authored and tpwrules committed Nov 22, 2024
1 parent d5e33a7 commit fd8c470
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_HAL/board/esp32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd8c470

Please sign in to comment.