1 /* 2 * SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #pragma once 8 9 #include "soc/soc_caps.h" 10 #include "soc/periph_defs.h" 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #if SOC_LCDCAM_SUPPORTED 17 typedef struct { 18 struct { 19 const periph_module_t module; 20 const int irq_id; 21 const int data_sigs[SOC_LCD_I80_BUS_WIDTH]; 22 const int cs_sig; 23 const int dc_sig; 24 const int wr_sig; 25 } buses[SOC_LCD_I80_BUSES]; 26 struct { 27 const periph_module_t module; 28 const int irq_id; 29 const int data_sigs[SOC_LCD_RGB_DATA_WIDTH]; 30 const int hsync_sig; 31 const int vsync_sig; 32 const int pclk_sig; 33 const int de_sig; 34 } panels[SOC_LCD_RGB_PANELS]; 35 } lcd_signal_conn_t; 36 37 #endif // SOC_LCDCAM_SUPPORTED 38 39 #if SOC_I2S_LCD_I80_VARIANT 40 typedef struct { 41 struct { 42 const periph_module_t module; 43 const int irq_id; 44 const int data_sigs[SOC_LCD_I80_BUS_WIDTH]; 45 const int wr_sig; 46 } buses[SOC_LCD_I80_BUSES]; 47 } lcd_signal_conn_t; 48 #endif // SOC_I2S_LCD_I80_VARIANT 49 50 extern const lcd_signal_conn_t lcd_periph_signals; 51 52 #ifdef __cplusplus 53 } 54 #endif 55