/*********************************************************************************

Copyright(c) 2007 Analog Devices, Inc. All Rights Reserved.

This software is proprietary and confidential.  By using this software you agree
to the terms of the associated Analog Devices License Agreement.
*********************************************************************************/

#ifndef _LCD_H_
#define _LCD_H_

#define GRAPHICS_MODE		    GFX_MODE_VGA_24bit  /* Graphics mode for graphics in gfx.c 		*/
                                                                                                                                                                                                
#define	    DMA_BUS_SIZE		4                   /* Processor DMA bus size = 2 bytes 		*/
                                                                                                  
#define     EPPI_DEV_NUMBER     0                   /* LQ043T1DG01 LCD is connected to EPPI 0	*/
                                                                                                  
#define     LCD_NUM_FRAMES 		60  	            /* update display pattern every # frames    */
#define	    LCD_WIDTH			480		            /* Pixels per line                          */
#define	    LCD_HEIGHT			272		            /* Lines per frame                          */
#define	    LCD_DATA_PER_PIXEL  3		            /* 3bytes per pixel (MSB = B, G, LSB = R    */
                                                                                                                                                
#define SELECTION_BOX_X1 		1                   /* 1st X co-ordinate for selection box   	*/                                              
#define SELECTION_BOX_X2 		LCD_WIDTH - 2       /* 2nd X co-ordinate for selection box   	*/                                              
#define SELECTION_BOX_HEIGHT	12                  /* Selection box height					   	*/                                              
#define SELECTION_BOX_START_Y1	BORDER_HEADER + 4   /* Y co-ordinate for selection box   		*/                                              
#define SELECTION_BOX_SPACING	18                  /* Vertical spacing b/w box selection		*/                                                                                                                                                
                                                                                                                                                
#define TEXT_POSITION_OFFSET_X	5                   /* X co-ordinate for text starting point 	*/                                              
#define TEXT_POSITION_OFFSET_Y	BORDER_HEADER + 4   /* Y co-ordinate for text starting point 	*/                                              
#define TEXT_SPACING			18                  /* Vertical spacing b/w file listing text	*/                                              
#define TEXT_CENTRED			LCD_WIDTH/2         /* LCD centre								*/                                              
#define TEXT_CENTRED_HEADER		120			 		/* Offset to centre header text				*/
#define TEXT_CENTRED_STATUS		210					/* Offset to centre status text				*/
#define TEXT_CENTRED_WARNING	105					/* Offset to centre warning text			*/
                                                                                                                                                
#define TAG_SPACING				18	                /* Vertical spacing between file tag text 	*/                                              
                                                                                                                                                
#define DISPLAY_FILELIST_MAX	8	                /* Max no of file displayed at one time 	*/                                                                                                                                                                                              
                                                    
#define	FRAMESIZE_HEADER		17                  /* No. of vertical lines for header frame 	*/
#define	FRAMESIZE_FILELISTING 	144                 /* No. of vertical lines for filelist frame	*/
#define	FRAMESIZE_FILETAG	 	68                  /* No. of vertical lines for filetagr frame	*/

/* Line borders for display */
#define BORDER_HEADER			FRAMESIZE_HEADER
#define BORDER_FILELISTING		FRAMESIZE_HEADER + FRAMESIZE_FILELISTING
#define BORDER_FILETAG_TOP		FRAMESIZE_HEADER + FRAMESIZE_FILELISTING + 2
#define BORDER_FILETAG_BOTTOM	FRAMESIZE_HEADER + FRAMESIZE_FILELISTING + 2 + FRAMESIZE_FILETAG
#define BORDER_STATUS_TOP		FRAMESIZE_HEADER + FRAMESIZE_FILELISTING + 2 + FRAMESIZE_FILETAG + 2

/* Maximium no. of characters that can be displayed across the LCD */
#define MAX_FILENAME_LENGTH		35

/* Maximium no. of file tag characters that can be displayed across the LCD */
#define MAX_TAG_LENGTH			50

#endif /* _LCD_H_ */

