mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(hal):graudate the LCD hal driver into a new component
- Introduced new HAL components for LCD and MIPI DSI, including: - `lcd_hal.c` and `lcd_hal.h` for LCD hardware abstraction layer. - `mipi_dsi_hal.c` and `mipi_dsi_hal.h` for MIPI DSI hardware abstraction layer. - Peripheral connection definitions in `lcd_periph.c` and `lcd_periph.h`. - Added necessary types and utility functions in `lcd_types.h` and `mipi_dsi_types.h`. - Updated CMakeLists to include the new HAL components in the build system. - Removed legacy references to LCD and MIPI DSI in the HAL and SOC CMakeLists.
This commit is contained in:
@@ -111,6 +111,14 @@ config SOC_I2S_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_I2S_I80_LCD_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_LCD_I80_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_RMT_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
@@ -459,22 +467,6 @@ config SOC_I2S_SUPPORTS_APLL
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_I2S_SUPPORTS_LCD_CAMERA
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_LCD_I80_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_LCD_I80_BUSES
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_LCD_I80_BUS_WIDTH
|
||||
int
|
||||
default 24
|
||||
|
||||
config SOC_LEDC_HAS_TIMER_SPECIFIC_MUX
|
||||
bool
|
||||
default y
|
||||
|
||||
@@ -70,6 +70,8 @@
|
||||
#define SOC_PSRAM_DMA_CAPABLE 1
|
||||
#define SOC_XT_WDT_SUPPORTED 1
|
||||
#define SOC_I2S_SUPPORTED 1
|
||||
#define SOC_I2S_I80_LCD_SUPPORTED 1
|
||||
#define SOC_LCD_I80_SUPPORTED 1
|
||||
#define SOC_RMT_SUPPORTED 1
|
||||
#define SOC_SDM_SUPPORTED 1
|
||||
#define SOC_GPSPI_SUPPORTED 1
|
||||
@@ -215,13 +217,6 @@
|
||||
// ESP32-S2 has 1 I2S
|
||||
#define SOC_I2S_HW_VERSION_1 (1)
|
||||
#define SOC_I2S_SUPPORTS_APLL (1)
|
||||
#define SOC_I2S_SUPPORTS_LCD_CAMERA (1)
|
||||
|
||||
/*-------------------------- LCD CAPS ----------------------------------------*/
|
||||
/* Notes: On esp32-s2, LCD intel 8080 timing is generated by I2S peripheral */
|
||||
#define SOC_LCD_I80_SUPPORTED (1) /*!< Intel 8080 LCD is supported */
|
||||
#define SOC_LCD_I80_BUSES (1U) /*!< Only I2S0 has LCD mode */
|
||||
#define SOC_LCD_I80_BUS_WIDTH (24) /*!< Intel 8080 bus width */
|
||||
|
||||
/*-------------------------- LEDC CAPS ---------------------------------------*/
|
||||
#define SOC_LEDC_HAS_TIMER_SPECIFIC_MUX (1)
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
/*------------------------------- I2S ---------------------------------------*/
|
||||
// helper macros to access module attributes
|
||||
#define _SOC_CAPS_I2S_INST_NUM 1 // Number of I2S instances
|
||||
#define _SOC_CAPS_I2S_MAX_DATA_WIDTH 24
|
||||
#define _SOC_CAPS_I2S_SUPPORT_DMA_EQUAL 1
|
||||
|
||||
/*------------------------------- Touch Sensor ------------------------------------*/
|
||||
#define _SOC_CAPS_TOUCH_CHAN_NUM 15 // Number of touch sensor channels
|
||||
|
||||
Reference in New Issue
Block a user