Board Support  Version 1.0
Functions available when using the Board Software Components
Configuration

Display configuration.

Display configuration.

Display configuration depends on the LCD hardware and user configuration.

The following definitions are used to configure display orientation:

The following definition are used to describe LCD physical information:

The following definition names are predefined (derived from the above definitions):

Example: 240*320 16bpp

/*--------------------- Graphic LCD orientation configuration ---------*/
#define GLCD_MIRROR_X 0 /* Mirror X axis = 1:yes, 0:no */
#define GLCD_MIRROR_Y 0 /* Mirror Y axis = 1:yes, 0:no */
#define GLCD_SWAP_XY 1 /* Swap X&Y axis = 1:yes, 0:no */
/*--------------------- Graphic LCD physical definitions --------------*/
#define GLCD_SIZE_X 240 /* Screen size X (in pixels) */
#define GLCD_SIZE_Y 320 /* Screen size Y (in pixels) */
#define GLCD_BPP 16 /* Bits per pixel */
#if (GLCD_SWAP_XY)
#define GLCD_WIDTH GLCD_SIZE_Y /* Screen Width (in pixels) */
#define GLCD_HEIGHT GLCD_SIZE_X /* Screen Height (in pixels) */
#else
#define GLCD_WIDTH GLCD_SIZE_X /* Screen Width (in pixels) */
#define GLCD_HEIGHT GLCD_SIZE_Y /* Screen Height (in pixels) */
#endif