35 lines
817 B
C
35 lines
817 B
C
/*
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2018-07-28 liu2guang the first version for STM32F469NI-Discovery.
|
|
*/
|
|
|
|
#ifndef __DRV_LCD_H_
|
|
#define __DRV_LCD_H_
|
|
|
|
#include <rtthread.h>
|
|
#include <rtdevice.h>
|
|
#include <board.h>
|
|
|
|
typedef enum
|
|
{
|
|
ROTATION_ZERO = 0,
|
|
ROTATION_090 = 90,
|
|
ROTATION_180 = 180,
|
|
ROTATION_270 = 270,
|
|
} bsp_rotation;
|
|
|
|
#define LCD_WIDTH DISPLAY_HSIZE_INPUT0
|
|
#define LCD_HEIGHT DISPLAY_VSIZE_INPUT0
|
|
#define LCD_BITS_PER_PIXEL DISPLAY_BITS_PER_PIXEL_INPUT1
|
|
#define LCD_PIXEL_FORMAT RTGRAPHIC_PIXEL_FORMAT_RGB565
|
|
#define LCD_BUF_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_BITS_PER_PIXEL / 8)
|
|
|
|
#define LCD_BL_PIN BSP_IO_PORT_06_PIN_03
|
|
|
|
#endif
|