mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
lcd: add LL driver for esp32-s3
This commit is contained in:
74
components/soc/esp32s3/lcd_periph.c
Normal file
74
components/soc/esp32s3/lcd_periph.c
Normal file
@@ -0,0 +1,74 @@
|
||||
// Copyright 2021 Espressif Systems (Shanghai) PTE LTD
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "soc/lcd_periph.h"
|
||||
#include "soc/gpio_sig_map.h"
|
||||
|
||||
const lcd_signal_conn_t lcd_periph_signals = {
|
||||
.buses = {
|
||||
[0] = {
|
||||
.module = PERIPH_LCD_CAM_MODULE,
|
||||
.irq_id = ETS_LCD_CAM_INTR_SOURCE,
|
||||
.data_sigs = {
|
||||
LCD_DATA_OUT0_IDX,
|
||||
LCD_DATA_OUT1_IDX,
|
||||
LCD_DATA_OUT2_IDX,
|
||||
LCD_DATA_OUT3_IDX,
|
||||
LCD_DATA_OUT4_IDX,
|
||||
LCD_DATA_OUT5_IDX,
|
||||
LCD_DATA_OUT6_IDX,
|
||||
LCD_DATA_OUT7_IDX,
|
||||
LCD_DATA_OUT8_IDX,
|
||||
LCD_DATA_OUT9_IDX,
|
||||
LCD_DATA_OUT10_IDX,
|
||||
LCD_DATA_OUT11_IDX,
|
||||
LCD_DATA_OUT12_IDX,
|
||||
LCD_DATA_OUT13_IDX,
|
||||
LCD_DATA_OUT14_IDX,
|
||||
LCD_DATA_OUT15_IDX,
|
||||
},
|
||||
.cs_sig = LCD_CS_IDX,
|
||||
.dc_sig = LCD_DC_IDX,
|
||||
.wr_sig = LCD_PCLK_IDX
|
||||
}
|
||||
},
|
||||
.panels = {
|
||||
[0] = {
|
||||
.module = PERIPH_LCD_CAM_MODULE,
|
||||
.irq_id = ETS_LCD_CAM_INTR_SOURCE,
|
||||
.data_sigs = {
|
||||
LCD_DATA_OUT0_IDX,
|
||||
LCD_DATA_OUT1_IDX,
|
||||
LCD_DATA_OUT2_IDX,
|
||||
LCD_DATA_OUT3_IDX,
|
||||
LCD_DATA_OUT4_IDX,
|
||||
LCD_DATA_OUT5_IDX,
|
||||
LCD_DATA_OUT6_IDX,
|
||||
LCD_DATA_OUT7_IDX,
|
||||
LCD_DATA_OUT8_IDX,
|
||||
LCD_DATA_OUT9_IDX,
|
||||
LCD_DATA_OUT10_IDX,
|
||||
LCD_DATA_OUT11_IDX,
|
||||
LCD_DATA_OUT12_IDX,
|
||||
LCD_DATA_OUT13_IDX,
|
||||
LCD_DATA_OUT14_IDX,
|
||||
LCD_DATA_OUT15_IDX,
|
||||
},
|
||||
.hsync_sig = LCD_H_SYNC_IDX,
|
||||
.vsync_sig = LCD_V_SYNC_IDX,
|
||||
.pclk_sig = LCD_PCLK_IDX,
|
||||
.de_sig = LCD_H_ENABLE_IDX,
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user