omap3530/beagle_drivers/lcd/lcd.cpp
changeset 21 524118fd998f
parent 0 6663340f3fc9
child 32 161f6b2f6990
equal deleted inserted replaced
20:3999188eafd0 21:524118fd998f
   136 																
   136 																
   137 
   137 
   138 // TO DO: (mandatory)
   138 // TO DO: (mandatory)
   139 // define the physical screen dimensions
   139 // define the physical screen dimensions
   140 // This is only example code... you need to modify it for your hardware
   140 // This is only example code... you need to modify it for your hardware
       
   141 
       
   142 
       
   143 /*
       
   144 Modified to scale up the display size to a 640x640 , which could be used for VGA layouts as well
       
   145 
   141 const TUint	KConfigLcdWidth					= 360;//640;		// 640 pixels per line
   146 const TUint	KConfigLcdWidth					= 360;//640;		// 640 pixels per line
   142 const TUint	KConfigLcdHeight				= 640;//480;		// 480 lines per panel
   147 const TUint	KConfigLcdHeight				= 640;//480;		// 480 lines per panel
       
   148 */
       
   149 
       
   150 const TUint	KConfigLcdWidth					= 640;		// 640 pixels per line
       
   151 const TUint	KConfigLcdHeight				= 640;		// 640 lines per panel
       
   152 
       
   153 
   143 
   154 
   144 // TO DO: (mandatory)
   155 // TO DO: (mandatory)
   145 // define the characteristics of the LCD display
   156 // define the characteristics of the LCD display
   146 // This is only example code... you need to modify it for your hardware
   157 // This is only example code... you need to modify it for your hardware
   147 const TBool	KConfigLcdIsMono				= EFalse;
   158 const TBool	KConfigLcdIsMono				= EFalse;
   153 // TO DO: (mandatory)
   164 // TO DO: (mandatory)
   154 // define the display dimensions in TWIPs
   165 // define the display dimensions in TWIPs
   155 // A TWIP is a 20th of a point.  A point is a 72nd of an inch
   166 // A TWIP is a 20th of a point.  A point is a 72nd of an inch
   156 // Therefore a TWIP is a 1440th of an inch
   167 // Therefore a TWIP is a 1440th of an inch
   157 // This is only example code... you need to modify it for your hardware
   168 // This is only example code... you need to modify it for your hardware
   158 const TInt	KConfigLcdWidthInTwips			= 9638;//10800;		// = 6.69 inches	//15*1440;
   169 //const TInt	KConfigLcdWidthInTwips			= 9638;//10800;		// = 6.69 inches	//15*1440;
   159 const TInt	KConfigLcdHeightInTwips			= 7370;//11232;//5616;		// = 5.11 inches	//12*1440;
   170 //const TInt	KConfigLcdHeightInTwips			= 7370;//11232;//5616;		// = 5.11 inches	//12*1440;
       
   171 
       
   172 // Modified Twips in accordance with VGA changes - Not sure if it helps or is needed
       
   173 
       
   174 const TInt	KConfigLcdWidthInTwips			= 2670;		// = 6.69 inches	//15*1440;
       
   175 const TInt	KConfigLcdHeightInTwips			= 3550;		//5616;		// = 5.11 inches	//12*1440;
   160 
   176 
   161 // TO DO: (mandatory)
   177 // TO DO: (mandatory)
   162 // define the available display modes
   178 // define the available display modes
   163 // This is only example code... you need to modify it for your hardware
   179 // This is only example code... you need to modify it for your hardware
   164 const TInt  KConfigLcdNumberOfDisplayModes	= 1;
   180 const TInt  KConfigLcdNumberOfDisplayModes	= 1;