mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
SAMA5: LCDC driver incorporated into the build system.
This commit is contained in:
@@ -71,6 +71,33 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* LCD Geometry and Timing */
|
||||||
|
|
||||||
|
#define BOARD_LCD_WIDTH 800 /* Display width (pixels) */
|
||||||
|
#define BOARD_LCD_HEIGHT 480 /* Display height (pixels) */
|
||||||
|
#define BOARD_LCD_IFWIDTH 24 /* Display interface width (bits) */
|
||||||
|
#define BOARD_LCD_TIMING_VFP 22 /* Vertical front porch (lines) */
|
||||||
|
#define BOARD_LCD_TIMING_VBP 21 /* Vertical back porch (lines) */
|
||||||
|
#define BOARD_LCD_TIMING_VPW 2 /* Vertical pulse width (lines) */
|
||||||
|
#define BOARD_LCD_TIMING_HFP 64 /* Horizontal front porch (LCDDOTCLK cycles) */
|
||||||
|
#define BOARD_LCD_TIMING_HBP 64 /* Horizontal back porch (LCDDOTCLK cycles) */
|
||||||
|
#define BOARD_LCD_TIMING_HPW 128 /* Horizontal pulse width (LCDDOTCLK cycles) */
|
||||||
|
#define BOARD_LCD_FRAMERATE 40 /* Frame rate (Hz) */
|
||||||
|
|
||||||
|
/* Frame size (words) (height * width * bpp / 32) */
|
||||||
|
|
||||||
|
#define BOARD_LCD_FRAMESIZE \
|
||||||
|
(BOARD_LCD_WIDTH * BOARD_LCD_HEIGHT * BOARD_LCD_IFWIDTH / 32)
|
||||||
|
|
||||||
|
/* Pixel clock rate (Hz )(HS period * VS period * BOARD_LCD_FRAMERATE). */
|
||||||
|
|
||||||
|
#define BOARD_LCD_HSPERIOD \
|
||||||
|
(BOARD_LCD_TIMING_HPW + BOARD_LCD_TIMING_HBP + BOARD_LCD_WIDTH + BOARD_LCD_TIMING_HFP)
|
||||||
|
#define BOARD_LCD_VSPERIOD \
|
||||||
|
(BOARD_LCD_TIMING_VPW + BOARD_LCD_TIMING_VBP + BOARD_LCD_HEIGHT + BOARD_LCD_TIMING_VFP)
|
||||||
|
#define BOARD_LCD_PIXELCLOCK \
|
||||||
|
(BOARD_LCD_HSPERIOD * BOARD_LCD_VSPERIOD * BOARD_LCD_FRAMERATE)
|
||||||
|
|
||||||
/* LED definitions ******************************************************************/
|
/* LED definitions ******************************************************************/
|
||||||
/* There are two LEDs on the SAMA5D3 series-CM board that can be controlled
|
/* There are two LEDs on the SAMA5D3 series-CM board that can be controlled
|
||||||
* by software. A blue LED is controlled via PIO pins. A red LED normally
|
* by software. A blue LED is controlled via PIO pins. A red LED normally
|
||||||
|
|||||||
Reference in New Issue
Block a user