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:
morris
2023-07-05 12:09:00 +08:00
parent 0d401ae443
commit 81a641d437
13 changed files with 56 additions and 35 deletions
+17
View File
@@ -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)