mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(gptimer): add gptimer linker.lf to control the placement of driver and hal
since the linker placement of the hal functions are controlled by the Kconfig in the driver component, we should create the linker.lf in the driver component, not in the hal component.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
[mapping:gptimer_driver]
|
||||
archive: libdriver.a
|
||||
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)
|
||||
|
||||
[mapping:gptimer_hal]
|
||||
archive: libhal.a
|
||||
entries:
|
||||
if GPTIMER_CTRL_FUNC_IN_IRAM = y:
|
||||
timer_hal: timer_hal_set_counter_value (noflash)
|
||||
timer_hal: timer_hal_capture_and_get_counter_value (noflash)
|
||||
Reference in New Issue
Block a user