Sfoglia il codice sorgente

refactor(esp_lcd): control hal function placement in the esp_lcd component

because G1 component can't rely on G2 component, thus  we shouldn't use the esp_lcd's Kconfig in the hal's linker.lf
morris 2 anni fa
parent
commit
b72df43a3f
2 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  1. 7 1
      components/esp_lcd/linker.lf
  2. 0 2
      components/hal/linker.lf

+ 7 - 1
components/esp_lcd/linker.lf

@@ -1,5 +1,11 @@
-[mapping:esp_lcd]
+[mapping:esp_lcd_driver]
 archive: libesp_lcd.a
 entries:
     if LCD_RGB_ISR_IRAM_SAFE = y:
         esp_lcd_common: lcd_com_mount_dma_data (noflash)
+
+[mapping:esp_lcd_hal]
+archive: libhal.a
+entries:
+    if LCD_RGB_ISR_IRAM_SAFE = y:
+        lcd_hal: lcd_hal_cal_pclk_freq (noflash)

+ 0 - 2
components/hal/linker.lf

@@ -34,8 +34,6 @@ entries:
         timer_hal_iram (noflash)
     if GPIO_CTRL_FUNC_IN_IRAM = y:
         gpio_hal: gpio_hal_intr_disable (noflash)
-    if LCD_RGB_ISR_IRAM_SAFE = y:
-        lcd_hal: lcd_hal_cal_pclk_freq (noflash)
     if ADC_ONESHOT_CTRL_FUNC_IN_IRAM = y:
         adc_oneshot_hal (noflash)
         if COMPILER_OPTIMIZATION_DEBUG = y: