Merge persistent RAM drive media driver and C-drive image with correct approach to GCE support in LCD driver
authorTom Pritchard <tomp@symbian.org>
Tue, 27 Jul 2010 15:37:38 +0100
changeset 47 deed9c658f70
parent 46 78c240f59c9d (current diff)
parent 45 e5bc2850013c (diff)
child 48 23f868c54bc5
child 76 0d34a4aa948d
Merge persistent RAM drive media driver and C-drive image with correct approach to GCE support in LCD driver
omap3530/beagleboard/bld.inf
omap3530/beagleboard/rom/base_beagle.iby
--- a/omap3530/beagle_drivers/lcd/bld.inf	Tue Jul 27 15:31:26 2010 +0100
+++ b/omap3530/beagle_drivers/lcd/bld.inf	Tue Jul 27 15:37:38 2010 +0100
@@ -18,3 +18,4 @@
 
 PRJ_MMPFILES
 lcd
+lcd_gce
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/omap3530/beagle_drivers/lcd/lcd_gce.mmp	Tue Jul 27 15:37:38 2010 +0100
@@ -0,0 +1,58 @@
+// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of the License "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// beagle/beagle_drivers/lcd.mmp
+// lcd.dll Beagle LCD driver
+//
+
+
+
+/**
+ @file
+*/
+#define __USING_ASSP_REGISTER_API__
+#define __USING_ASSP_INTERRUPT_API__
+
+#include			"beagle/variant.mmh"
+#include			"kernel/kern_ext.mmh"
+
+//Need to define NGA_BUILD for a NGA compliant Display PDD
+#define NGA_BUILD
+#ifdef NGA_BUILD
+MACRO ENABLE_GCE_MODE
+target				VariantTarget(lcd_gce,dll)
+#else
+target				VariantTarget(lcd,dll)
+#endif
+
+targettype			kext
+romtarget			lcd.dll
+
+sourcepath			.
+source				lcd.cpp
+
+SYMBIAN_BASE_SYSTEMINCLUDE(drivers)
+userinclude			.
+
+library			VariantTarget(ecust,lib)
+LIBRARY         AsspTarget(prcm,lib)
+
+noexportlibrary
+
+epocallowdlldata
+
+uid					0x1000008d 0x100039e8
+
+VENDORID 0x70000001
+
+capability			all
--- a/omap3530/beagleboard/bld.inf	Tue Jul 27 15:31:26 2010 +0100
+++ b/omap3530/beagleboard/bld.inf	Tue Jul 27 15:37:38 2010 +0100
@@ -49,9 +49,15 @@
 start		extension		base/bootstrap
 
 #ifdef SYMBIAN_OLD_EXPORT_LOCATION
-option INC_PATH   /epoc32/include
+option INC_PATH   $(EPOCROOT)epoc32/include
 #else
-option INC_PATH  /epoc32/include/platform
+option INC_PATH  $(EPOCROOT)epoc32/include/platform
+#endif
+#ifdef GCCE
+option		GCCE			GCCE
+#endif
+#ifdef ARMCC
+option		ARMCC			ARMCC
 #endif
 option		NAME			_beagle_bootrom
 option		CPU			arm
@@ -59,7 +65,7 @@
 option		SOURCES			beagle.s
 option		EXTRA_SRC_PATH		$(EXTENSION_ROOT)/bootstrap
 option		EXTRA_INC_PATH		$(EXTENSION_ROOT)/bootstrap
-option		INCLUDES		$(EXTENSION_ROOT)/bootstrap/config.inc
+option		INCLUDES		config.inc
 option		E32PATH			$(EXTENSION_ROOT)/../../../../../../sf/os/kernelhwsrv/kernel
 
 end
--- a/omap3530/beagleboard/def/eabi/vbeagle.def	Tue Jul 27 15:31:26 2010 +0100
+++ b/omap3530/beagleboard/def/eabi/vbeagle.def	Tue Jul 27 15:37:38 2010 +0100
@@ -1,7 +1,7 @@
 EXPORTS
 	_Z17VariantInitialisev @ 1 NONAME
-	_ZN6Beagle27SystemTimeInSecondsFrom2000ERi @ 2 NONAME
-	_ZN6Beagle30SetSystemTimeInSecondsFrom2000Ei @ 3 NONAME
+	_ZN6Beagle27SystemTimeInSecondsFrom2000ERi @ 2 NONAME ABSENT
+	_ZN6Beagle30SetSystemTimeInSecondsFrom2000Ei @ 3 NONAME ABSENT
 	_ZN7Variant10PowerResetEv @ 4 NONAME
 	_ZN7Variant14BaseLinAddressEv @ 5 NONAME
 	_ZN7Variant15GetMsTickPeriodEv @ 6 NONAME
--- a/omap3530/beagleboard/rom/base_beagle.iby	Tue Jul 27 15:31:26 2010 +0100
+++ b/omap3530/beagleboard/rom/base_beagle.iby	Tue Jul 27 15:37:38 2010 +0100
@@ -86,7 +86,10 @@
 
 primary[VARID]	=\epoc32\release\ARMV5\BUILD_DIR\_omap3530_ekern.exe			\sys\bin\ekern.exe
 extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_omap3530_kaomap3530.dll		\sys\bin\kaomap3530.dll
+
 #include <..\omapshared\mstick.iby>
+
+// Removing BTRACEX
 //extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_beagle_BTRACEX.LDD			\sys\bin\btracex.ldd
 
 extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_omap3530_prcm.dll				\sys\bin\prcm.dll
@@ -108,21 +111,23 @@
 #include <../omapshared/tps65950.iby>
 
 #ifdef SYMBIAN_BASE_USE_GCE
-extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_beagle_lcd_gce.dll	\sys\bin\lcd.dll
-device[VARID]=KERNEL_DIR\DEBUG_DIR\display.ldd			\sys\bin\display0.ldd
-#file=ABI_DIR\DEBUG_DIR\_beagle_ekdata.dll				\sys\bin\ekdata.dll
-#else
-#ifdef TSHELL_SERIAL
-	//Use VT100 Over Serial
-#	define EDISP_DRV	\EDISP_VT100.DLL
+	// Use the new GCE compliant display driver  
+	extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_beagle_lcd_gce.dll	\sys\bin\lcd.dll
+	device[VARID]=KERNEL_DIR\DEBUG_DIR\display.ldd			\sys\bin\display0.ldd
+	#file=ABI_DIR\DEBUG_DIR\_beagle_ekdata.dll				\sys\bin\ekdata.dll
+	extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_omap3530_serialkeyboard_uisoftkeys.dll	\sys\bin\ekeyb.dll
 #else
-	extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_beagle_lcd.dll				\sys\bin\lcd.dll
-#	ifdef TSHELL_SERIALMOUSE
-		extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_beagle_serialmouse.DLL	\sys\bin\eserialmouse.dll
-#	else
-//		extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_omap3530_serialkeyboard.DLL	\sys\bin\ekeyb.dll
-#	endif
-#endif
+	#ifdef TSHELL_SERIAL
+		//Use VT100 Over Serial
+		#define EDISP_DRV	\EDISP_VT100.DLL
+	#else
+		extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_beagle_lcd.dll				\sys\bin\lcd.dll
+		#ifdef TSHELL_SERIALMOUSE
+			extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_beagle_serialmouse.DLL	\sys\bin\eserialmouse.dll
+		#else
+			extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_omap3530_serialkeyboard.DLL	\sys\bin\ekeyb.dll
+		#endif
+	#endif
 #endif //SYMBIAN_BASE_USE_GCE
 
 device[VARID]=KERNEL_DIR\BUILD_DIR\_omap3530_EUART.PDD				\sys\bin\euart.pdd
@@ -139,5 +144,4 @@
 extension[VARID]=	\epoc32\release\ARMV5\BUILD_DIR\_beagle_usbv.dll					\sys\bin\usbv.DLL
 #endif
 
-//extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_beagle_ekeyb.dll	\sys\bin\ekeyb.dll
-extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_omap3530_serialkeyboard.DLL	\sys\bin\ekeyb.dll
\ No newline at end of file
+//extension[VARID]=\epoc32\release\ARMV5\BUILD_DIR\_beagle_ekeyb.dll	\sys\bin\ekeyb.dll
\ No newline at end of file
--- a/omap3530/beagleboard/src/variant.cia	Tue Jul 27 15:31:26 2010 +0100
+++ b/omap3530/beagleboard/src/variant.cia	Tue Jul 27 15:37:38 2010 +0100
@@ -56,7 +56,7 @@
 __NAKED__ void ArmWaitForInterrupt()
 	{
 	//ARM_WFI;
-	asm(".word %a0" : : "i" ((TInt)(0x0320f003 | ((14)<<28) )) )
+	asm(".word %a0" : : "i" ((TInt)(0x0320f003 | ((14)<<28) )) );
 	asm("	bx		lr");
 	}
 
--- a/omap3530/beagleboard/src/variant.cpp	Tue Jul 27 15:31:26 2010 +0100
+++ b/omap3530/beagleboard/src/variant.cpp	Tue Jul 27 15:37:38 2010 +0100
@@ -676,7 +676,7 @@
 }
 
 
-EXPORT_C TInt  Beagle::SystemTimeInSecondsFrom2000(TInt& aTime)
+TInt  Beagle::SystemTimeInSecondsFrom2000(TInt& aTime)
 	{
 	
 	if(!TPS65950::Initialized())
@@ -718,7 +718,7 @@
 	return KErrNone;
 	}
 
-EXPORT_C TInt Beagle::SetSystemTimeInSecondsFrom2000(TInt aTime)
+TInt Beagle::SetSystemTimeInSecondsFrom2000(TInt aTime)
 	{
 	if(!TPS65950::Initialized())
 		{
--- a/omap3530/shared/serialkeyb/bld.inf	Tue Jul 27 15:31:26 2010 +0100
+++ b/omap3530/shared/serialkeyb/bld.inf	Tue Jul 27 15:37:38 2010 +0100
@@ -19,3 +19,4 @@
 
 PRJ_MMPFILES
 serialkeyboard
+serialkeyboard_UI_Softkeys
--- a/omap3530/shared/serialkeyb/serialkeyboard.cpp	Tue Jul 27 15:31:26 2010 +0100
+++ b/omap3530/shared/serialkeyb/serialkeyboard.cpp	Tue Jul 27 15:37:38 2010 +0100
@@ -32,6 +32,7 @@
 #define ISFUNC(x)  (0x4000&(x))
 #define STDKEY(x)    (0x1FFF&(x))
 
+#if _UI_SOFTKEYS_ENABLED_
 static const TUint16 KScanCode[] =
 	{
 	/*00*/	EStdKeyNull,
@@ -164,6 +165,141 @@
 	/*7f*/	EKeyDelete
 	};
 
+#else
+static const TUint16 KScanCode[] =
+	{
+	/*00*/	EStdKeyNull,
+	/*01*/	EStdKeyHome,				// ^A
+	/*02*/	EStdKeyLeftArrow,			// ^B
+	/*03*/	EStdKeyEscape,				// ^C
+	/*04*/	SHIFTED(EStdKeyDownArrow),	// ^D - move window down
+	/*05*/	EStdKeyEnd,					// ^E
+	/*06*/	EStdKeyRightArrow,			// ^F
+	/*07*/	EStdKeyNull,
+	/*08*/	EStdKeyBackspace,			// ^H - Reserved!
+	/*09*/	EStdKeyTab,					// ^I - Reserved!
+	/*0a*/	EStdKeyNull,
+	/*0b*/	EStdKeyIncContrast,			// ^K
+	/*0c*/	EStdKeyDecContrast,			// ^L
+	/*0d*/	EStdKeyEnter,				// ^M - Reserved!
+	/*0e*/	EStdKeyDownArrow,			// ^N
+	/*0f*/	EStdKeyNull,				// ^O = instant death
+	/*10*/	EStdKeyUpArrow,				// ^P
+	/*11*/	CTRLED(EStdKeyLeftArrow),	// ^Q - make window narrower
+	/*12*/	CTRLED(FUNCED('5')),		// ^R - rotate windows in text window server
+	/*13*/	EStdKeyNull,
+	/*14*/	CTRLED(EStdKeyDownArrow),	// ^T - make window taller
+	/*15*/	SHIFTED(EStdKeyUpArrow),	// ^U - move window up
+	/*16*/	EStdKeyNull,
+	/*17*/	CTRLED(EStdKeyRightArrow),	// ^W - make window wider
+	/*18*/	SHIFTED(EStdKeyRightArrow),	// ^X - move window right
+	/*19*/	CTRLED(EStdKeyUpArrow),		// ^Y - make window shorter
+	/*1a*/	SHIFTED(EStdKeyLeftArrow),	// ^Z - move window left
+	/*1b*/	EStdKeyEscape,				// ^[ - Reserved!
+	/*1c*/	EStdKeyNull,
+	/*1d*/	EStdKeyNull,
+	/*1e*/	EStdKeyNull,
+	/*1f*/	EStdKeyNull,
+	/*20*/	EStdKeySpace,
+	/*21*/	SHIFTED('1'),		// !
+	/*22*/	SHIFTED('2'),		// "
+	/*23*/	EStdKeyHash,		// #
+	/*24*/	SHIFTED('4'),		// $
+	/*25*/	SHIFTED('5'),		// %
+	/*26*/	SHIFTED('7'),		// &
+	/*27*/	EStdKeySingleQuote,
+	/*28*/	SHIFTED('9'),		// (
+	/*29*/	SHIFTED('0'),		// )
+	/*2a*/	SHIFTED('8'),		// *
+	/*2b*/	SHIFTED(EStdKeyEquals),	// +
+	/*2c*/	EStdKeyComma,
+	/*2d*/	EStdKeyMinus,
+	/*2e*/	EStdKeyFullStop,
+	/*2f*/	EStdKeyForwardSlash,
+	/*30*/	'0',
+	/*31*/	'1',
+	/*32*/	'2',
+	/*33*/	'3',
+	/*34*/	'4',
+	/*35*/	'5',
+	/*36*/	'6',
+	/*37*/	'7',
+	/*38*/	'8',
+	/*39*/	'9',
+	/*3a*/	SHIFTED(EStdKeySemiColon),	// :
+	/*3b*/	EStdKeySemiColon,
+	/*3c*/	SHIFTED(EStdKeyComma),		// <
+	/*3d*/	EStdKeyEquals,
+	/*3e*/	SHIFTED(EStdKeyFullStop),	// >
+	/*3f*/	SHIFTED(EStdKeyForwardSlash),	// ?
+	/*40*/	SHIFTED(EStdKeySingleQuote),	// @
+	/*41*/	SHIFTED('A'),
+	/*42*/	SHIFTED('B'),
+	/*43*/	SHIFTED('C'),
+	/*44*/	SHIFTED('D'),
+	/*45*/	SHIFTED('E'),
+	/*46*/	SHIFTED('F'),
+	/*47*/	SHIFTED('G'),
+	/*48*/	SHIFTED('H'),
+	/*49*/	SHIFTED('I'),
+	/*4a*/	SHIFTED('J'),
+	/*4b*/	SHIFTED('K'),
+	/*4c*/	SHIFTED('L'),
+	/*4d*/	SHIFTED('M'),
+	/*4e*/	SHIFTED('N'),
+	/*4f*/	SHIFTED('O'),
+	/*50*/	SHIFTED('P'),
+	/*51*/	SHIFTED('Q'),
+	/*52*/	SHIFTED('R'),
+	/*53*/	SHIFTED('S'),
+	/*54*/	SHIFTED('T'),
+	/*55*/	SHIFTED('U'),
+	/*56*/	SHIFTED('V'),
+	/*57*/	SHIFTED('W'),
+	/*58*/	SHIFTED('X'),
+	/*59*/	SHIFTED('Y'),
+	/*5a*/	SHIFTED('Z'),
+	/*5b*/	EStdKeySquareBracketLeft,
+	/*5c*/	EStdKeyBackSlash,
+	/*5d*/	EStdKeySquareBracketRight,
+	/*5e*/	SHIFTED('6'),			// ^
+	/*5f*/	SHIFTED(EStdKeyMinus),	// _
+	/*60*/	EStdKeyBacklightToggle,	// Actually `
+	/*61*/	'A',
+	/*62*/	'B',
+	/*63*/	'C',
+	/*64*/	'D',
+	/*65*/	'E',
+	/*66*/	'F',
+	/*67*/	'G',
+	/*68*/	'H',
+	/*69*/	'I',
+	/*6a*/	'J',
+	/*6b*/	'K',
+	/*6c*/	'L',
+	/*6d*/	'M',
+	/*6e*/	'N',
+	/*6f*/	'O',
+	/*70*/	'P',
+	/*71*/	'Q',
+	/*72*/	'R',
+	/*73*/	'S',
+	/*74*/	'T',
+	/*75*/	'U',
+	/*76*/	'V',
+	/*77*/	'W',
+	/*78*/	'X',
+	/*79*/	'Y',
+	/*7a*/	'Z',
+	/*7b*/	SHIFTED(EStdKeySquareBracketLeft),
+	/*7c*/	SHIFTED(EStdKeyBackSlash),
+	/*7d*/	SHIFTED(EStdKeySquareBracketRight),
+	/*7e*/	SHIFTED(EStdKeyHash),
+	/*7f*/	EKeyDelete
+	};
+
+#endif
+
 static const TUint16 KEscapedScanCode[] =
 	{
 	EStdKeyUpArrow,
@@ -310,7 +446,6 @@
 			}
 		else
 			{
-			Kern::Printf("Key received: %d %d", self->iKey, KScanCode[self->iKey]);
 			self->AddKey( KScanCode[ self->iKey ] );
 			}
 		break;
@@ -362,7 +497,6 @@
 
 	TRawEvent e;
 
-	Kern::Printf("AddKey %d %d %d %d", shifted, ctrl, func, stdKey);
 	
 	if ( func )
 		{
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/omap3530/shared/serialkeyb/serialkeyboard_UI_Softkeys.mmp	Tue Jul 27 15:37:38 2010 +0100
@@ -0,0 +1,52 @@
+// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of the License "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// omap3530/shared/serialkeyb/serialkeyboard.mmp
+// omap3530/shared/serialkeyb.serialkeyboard.mmp
+// Simple serial keyboard implementation for Beagle baseport
+//
+
+
+
+/**
+ @file
+*/
+macro	_UI_SOFTKEYS_ENABLED_
+
+#define __USING_ASSP_REGISTER_API__
+#define __USING_ASSP_INTERRUPT_API__
+
+#include			"beagle/variant.mmh"
+#include			"kernel/kern_ext.mmh"
+
+target				AsspTarget(serialkeyboard_uisoftkeys,dll)
+targettype			kext
+romtarget			ekeyb.dll
+
+systeminclude			+/include/drivers
+
+SYMBIAN_BASE_SYSTEMINCLUDE(drivers)
+sourcepath			.
+source				serialkeyboard.cpp
+
+library				AsspTarget(uart,lib)
+library				AsspTarget(prcm,lib)
+//library				resman.lib
+
+noexportlibrary
+
+uid					0x100039cf 0x100000db
+
+VENDORID 0x70000001
+
+capability			all