1 /*
2  * Copyright (c) 2006-2022, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2022-02-26     lik         first version
9  */
10 
11 #ifndef __LCD_PORT_H__
12 #define __LCD_PORT_H__
13 
14 #include "board.h"
15 
16 /* atk 4.3 inch screen, 480 * 272 */
17 #define LCD_WIDTH 480
18 #define LCD_HEIGHT 272
19 #define LCD_BITS_PER_PIXEL 16
20 #define LCD_BUF_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_BITS_PER_PIXEL / 8)
21 #define LCD_PIXEL_FORMAT RTGRAPHIC_PIXEL_FORMAT_RGB565
22 
23 #define LCD_CLK_DIV 15
24 #define LCD_HSYNC_WIDTH 5
25 #define LCD_VSYNC_WIDTH 5
26 #define LCD_HBP 40
27 #define LCD_VBP 8
28 #define LCD_HFP 5
29 #define LCD_VFP 8
30 
31 #define LCD_BACKLIGHT_USING_GPIO
32 #define LCD_BL_GPIO GET_PIN(D, 9)
33 #define LCD_DISP_GPIO GET_PIN(D, 1)
34 
35 #endif /* __LCD_PORT_H__ */
36