summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgbcwbz <[email protected]>2019-09-19 11:44:17 +0800
committergbcwbz <[email protected]>2019-09-19 11:44:17 +0800
commitcfb6e59941880d823e6b4fbf43156e1d14d27e35 (patch)
treecfb7470010d2260910dc3bc71d9b25d2dfdbe300
parentb789721307d952ac7ab8865e6fef56920125b608 (diff)
[bsp][stm32][stm32f767-atk-apollo] Fix missing lcd_port.h error
-rw-r--r--bsp/stm32/stm32f767-atk-apollo/board/ports/lcd_port.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/bsp/stm32/stm32f767-atk-apollo/board/ports/lcd_port.h b/bsp/stm32/stm32f767-atk-apollo/board/ports/lcd_port.h
new file mode 100644
index 0000000000..ca894bb045
--- /dev/null
+++ b/bsp/stm32/stm32f767-atk-apollo/board/ports/lcd_port.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2019-01-08 zylx first version
+ */
+
+#ifndef __LCD_PORT_H__
+#define __LCD_PORT_H__
+
+/* atk 4.3 inch screen, 480 * 272 */
+#define LCD_WIDTH 480
+#define LCD_HEIGHT 272
+#define LCD_BITS_PER_PIXEL 16
+#define LCD_BUF_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_BITS_PER_PIXEL / 8)
+#define LCD_PIXEL_FORMAT RTGRAPHIC_PIXEL_FORMAT_RGB565
+
+#define LCD_HSYNC_WIDTH 1
+#define LCD_VSYNC_HEIGHT 1
+#define LCD_HBP 40
+#define LCD_VBP 8
+#define LCD_HFP 5
+#define LCD_VFP 8
+
+#define LCD_BACKLIGHT_USING_GPIO
+#define LCD_BL_GPIO_NUM GET_PIN(B, 5)
+#define LCD_DISP_GPIO_NUM GET_PIN(B, 0)
+/* atk 4.3 inch screen, 480 * 272 */
+
+#endif /* __LCD_PORT_H__ */