feat(tcm): added tcm basic support on esp32p4

This commit is contained in:
Armando
2023-07-11 16:07:39 +08:00
committed by Armando (Dou Yiwen)
parent a336b94527
commit 756c36504a
3 changed files with 25 additions and 0 deletions

View File

@@ -25,6 +25,9 @@ extern "C" {
// Forces data into DRAM instead of flash
#define DRAM_ATTR _SECTION_ATTR_IMPL(".dram1", __COUNTER__)
// Forces code into TCM instead of flash
#define TCM_IRAM_ATTR _SECTION_ATTR_IMPL(".tcm.text", __COUNTER__)
// IRAM can only be accessed as an 8-bit memory on ESP32, when CONFIG_ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY is set
#define IRAM_8BIT_ACCESSIBLE (CONFIG_IDF_TARGET_ESP32 && CONFIG_ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY)