Files
esp-idf/components/esp_hal_lcd/include/hal/lcd_periph.h
morris ab70690fff refactor(lcd): move sleep retention config into driver layer
Move LCD I80 retention descriptors and related comments out of
esp_hal_lcd and into esp_lcd so the backup policy stays with the driver
implementation.
2026-07-10 10:05:01 +08:00

81 lines
2.0 KiB
C

/*
* SPDX-FileCopyrightText: 2021-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stddef.h>
#include "soc/soc_caps.h"
#include "soc/periph_defs.h"
#if SOC_HAS(I2S)
#include "hal/i2s_ll.h"
#endif
#if SOC_HAS(LCDCAM_I80_LCD) || SOC_HAS(LCDCAM_RGB_LCD)
#include "hal/lcd_ll.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if SOC_HAS(LCDCAM_RGB_LCD)
typedef struct {
const shared_periph_module_t module;
const int irq_id;
const int data_sigs[LCD_LL_GET(RGB_BUS_WIDTH)];
const int hsync_sig;
const int vsync_sig;
const int pclk_sig;
const int de_sig;
const int disp_sig;
} soc_lcd_rgb_signal_desc_t;
extern const soc_lcd_rgb_signal_desc_t soc_lcd_rgb_signals[LCD_LL_GET(RGB_PANEL_NUM)];
#if LCD_LL_SUPPORT(IOMUX)
typedef struct {
const int gpio_num;
const int func;
} soc_lcd_iomux_pin_desc_t;
typedef struct {
const soc_lcd_iomux_pin_desc_t data_pins[LCD_LL_GET(RGB_BUS_WIDTH)];
const soc_lcd_iomux_pin_desc_t hsync_pin;
const soc_lcd_iomux_pin_desc_t vsync_pin;
const soc_lcd_iomux_pin_desc_t pclk_pin;
const soc_lcd_iomux_pin_desc_t de_pin;
} soc_lcd_rgb_iomux_desc_t;
extern const soc_lcd_rgb_iomux_desc_t soc_lcd_rgb_iomux_descs[LCD_LL_GET(RGB_PANEL_NUM)];
#endif // LCD_LL_SUPPORT(IOMUX)
#endif // SOC_HAS(LCDCAM_RGB_LCD)
#if SOC_HAS(LCDCAM_I80_LCD)
typedef struct {
const shared_periph_module_t module;
const int irq_id;
const int data_sigs[LCD_LL_GET(I80_BUS_WIDTH)];
const int cs_sig;
const int dc_sig;
const int wr_sig;
} soc_lcd_i80_signal_desc_t;
extern const soc_lcd_i80_signal_desc_t soc_lcd_i80_signals[LCD_LL_GET(I80_BUS_NUM)];
#endif // SOC_HAS(LCDCAM_I80_LCD)
#if SOC_HAS(I2S_I80_LCD)
typedef struct {
const int irq_id;
const int data_sigs[I2S_LL_GET(BUS_WIDTH)];
const int wr_sig;
} soc_lcd_i2s_signal_desc_t;
extern const soc_lcd_i2s_signal_desc_t soc_lcd_i2s_signals[I2S_LL_GET(INST_NUM)];
#endif // SOC_HAS(I2S_I80_LCD)
#ifdef __cplusplus
}
#endif