1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2019-01-08 zylx first version 9 */ 10 11 #ifndef __LCD_PORT_H__ 12 #define __LCD_PORT_H__ 13 14 /* armfly 5 inch screen, 800 * 480 */ 15 #define LCD_WIDTH 800 16 #define LCD_HEIGHT 480 17 #define LCD_BITS_PER_PIXEL 16 18 #define LCD_BUF_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_BITS_PER_PIXEL / 8) 19 #define LCD_PIXEL_FORMAT RTGRAPHIC_PIXEL_FORMAT_RGB565 20 21 #define LCD_HSYNC_WIDTH 96 22 #define LCD_VSYNC_HEIGHT 2 23 #define LCD_HBP 10 24 #define LCD_VBP 10 25 #define LCD_HFP 10 26 #define LCD_VFP 10 27 28 #define LCD_BACKLIGHT_USING_PWM 29 #define LCD_PWM_DEV_NAME "pwm2" 30 #define LCD_PWM_DEV_CHANNEL 1 31 /* armfly 5 inch screen, 800 * 480 */ 32 33 #endif /* __LCD_PORT_H__ */ 34