Merge branch 'refactor/gpspi_linker' into 'master'

change(gpspi): control hal function placement in the driver component

See merge request espressif/esp-idf!36610
This commit is contained in:
morris
2025-01-26 11:51:31 +08:00
4 changed files with 8 additions and 19 deletions
-2
View File
@@ -24,7 +24,6 @@ menu "ESP-Driver:SPI Configurations"
default y
depends on !HEAP_PLACE_FUNCTION_INTO_FLASH
select PERIPH_CTRL_FUNC_IN_IRAM
select HAL_SPI_MASTER_FUNC_IN_IRAM
select ESP_SPI_BUS_LOCK_ISR_FUNCS_IN_IRAM
select GDMA_CTRL_FUNC_IN_IRAM if SOC_GDMA_SUPPORTED
help
@@ -54,7 +53,6 @@ menu "ESP-Driver:SPI Configurations"
bool "Place SPI slave ISR function into IRAM"
default y
select PERIPH_CTRL_FUNC_IN_IRAM
select HAL_SPI_SLAVE_FUNC_IN_IRAM
select GDMA_CTRL_FUNC_IN_IRAM if SOC_GDMA_SUPPORTED
help
Place the SPI slave ISR in to IRAM to avoid possible cache miss.
+8
View File
@@ -8,3 +8,11 @@ entries:
if SOC_SPI_SUPPORT_SLAVE_HD_VER2 = y:
spi_dma: spi_dma_get_eof_desc (noflash)
[mapping:gpspi_hal]
archive: libhal.a
entries:
if SPI_MASTER_ISR_IN_IRAM = y:
spi_hal_iram (noflash)
if SPI_SLAVE_ISR_IN_IRAM = y:
spi_slave_hal_iram (noflash)