forked from espressif/esp-idf
Merge branch 'refactor/gpio_linker_file' into 'master'
refactor(gpio): Add gpio linker.lf to control the placement of driver and hal Closes IDF-7805 See merge request espressif/esp-idf!24634
This commit is contained in:
@@ -216,7 +216,7 @@ else()
|
|||||||
INCLUDE_DIRS ${includes}
|
INCLUDE_DIRS ${includes}
|
||||||
PRIV_REQUIRES efuse esp_timer
|
PRIV_REQUIRES efuse esp_timer
|
||||||
REQUIRES esp_pm esp_ringbuf freertos soc hal esp_hw_support
|
REQUIRES esp_pm esp_ringbuf freertos soc hal esp_hw_support
|
||||||
LDFRAGMENTS linker.lf gptimer/linker.lf)
|
LDFRAGMENTS linker.lf gptimer/linker.lf gpio/linker.lf)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# If system needs to monitor USJ connection status, then usb_serial_jtag_connection_monitor object file has to be linked
|
# If system needs to monitor USJ connection status, then usb_serial_jtag_connection_monitor object file has to be linked
|
||||||
|
12
components/driver/gpio/linker.lf
Normal file
12
components/driver/gpio/linker.lf
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[mapping:gpio_driver]
|
||||||
|
archive: libdriver.a
|
||||||
|
entries:
|
||||||
|
if GPIO_CTRL_FUNC_IN_IRAM = y:
|
||||||
|
gpio: gpio_set_level (noflash)
|
||||||
|
gpio: gpio_intr_disable (noflash)
|
||||||
|
|
||||||
|
[mapping:gpio_hal]
|
||||||
|
archive: libhal.a
|
||||||
|
entries:
|
||||||
|
if GPIO_CTRL_FUNC_IN_IRAM = y:
|
||||||
|
gpio_hal: gpio_hal_intr_disable (noflash)
|
@@ -1,21 +1,11 @@
|
|||||||
[mapping:driver]
|
[mapping:driver]
|
||||||
archive: libdriver.a
|
archive: libdriver.a
|
||||||
entries:
|
entries:
|
||||||
if GPTIMER_CTRL_FUNC_IN_IRAM = y:
|
|
||||||
gptimer: gptimer_set_raw_count (noflash)
|
|
||||||
gptimer: gptimer_get_raw_count (noflash)
|
|
||||||
gptimer: gptimer_get_captured_count (noflash)
|
|
||||||
gptimer: gptimer_set_alarm_action (noflash)
|
|
||||||
gptimer: gptimer_start (noflash)
|
|
||||||
gptimer: gptimer_stop (noflash)
|
|
||||||
if PCNT_CTRL_FUNC_IN_IRAM = y:
|
if PCNT_CTRL_FUNC_IN_IRAM = y:
|
||||||
pulse_cnt: pcnt_unit_start (noflash)
|
pulse_cnt: pcnt_unit_start (noflash)
|
||||||
pulse_cnt: pcnt_unit_stop (noflash)
|
pulse_cnt: pcnt_unit_stop (noflash)
|
||||||
pulse_cnt: pcnt_unit_clear_count (noflash)
|
pulse_cnt: pcnt_unit_clear_count (noflash)
|
||||||
pulse_cnt: pcnt_unit_get_count (noflash)
|
pulse_cnt: pcnt_unit_get_count (noflash)
|
||||||
if GPIO_CTRL_FUNC_IN_IRAM = y:
|
|
||||||
gpio: gpio_set_level (noflash)
|
|
||||||
gpio: gpio_intr_disable (noflash)
|
|
||||||
if SDM_CTRL_FUNC_IN_IRAM = y:
|
if SDM_CTRL_FUNC_IN_IRAM = y:
|
||||||
sdm: sdm_channel_set_pulse_density (noflash)
|
sdm: sdm_channel_set_pulse_density (noflash)
|
||||||
if ANA_CMPR_CTRL_FUNC_IN_IRAM = y:
|
if ANA_CMPR_CTRL_FUNC_IN_IRAM = y:
|
||||||
|
@@ -30,8 +30,6 @@ entries:
|
|||||||
twai_hal_iram (noflash)
|
twai_hal_iram (noflash)
|
||||||
if IDF_TARGET_ESP32 = n:
|
if IDF_TARGET_ESP32 = n:
|
||||||
spi_flash_hal_gpspi (noflash)
|
spi_flash_hal_gpspi (noflash)
|
||||||
if GPIO_CTRL_FUNC_IN_IRAM = y:
|
|
||||||
gpio_hal: gpio_hal_intr_disable (noflash)
|
|
||||||
if ADC_ONESHOT_CTRL_FUNC_IN_IRAM = y:
|
if ADC_ONESHOT_CTRL_FUNC_IN_IRAM = y:
|
||||||
adc_oneshot_hal (noflash)
|
adc_oneshot_hal (noflash)
|
||||||
if COMPILER_OPTIMIZATION_DEBUG = y:
|
if COMPILER_OPTIMIZATION_DEBUG = y:
|
||||||
|
Reference in New Issue
Block a user