navienginebsp/naviengine_assp/naviengine_assp.cia
author andy simpson <andrews@symbian.org>
Tue, 12 Oct 2010 16:52:28 +0100
changeset 5 bf4661c6bc44
parent 0 5de814552237
permissions -rw-r--r--
work-a-round for Bug 3645 change ARGB->XRGB pixel format

/*
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "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:  
* naviengine_assp\naviengine.cia
* NE1_TBVariant ASSP architecture layer
*
*/



#include <e32cia.h>
#include <naviengine_priv.h>

EXPORT_C __NAKED__ void TNaviEngine::BootWaitMilliSeconds(TInt aDuration)
//
// Active waiting loop (not to be used after System Tick timer has been set up - Init3()
//
	{
	//
	// TO DO: (optional)
	//
	// Program a Hardware Timer to generate the required duration, and then loop until the timer expires.
	// Do NOT use interrupts!
	//
	}


__NAKED__ void TNaviEngine::NanoWait(TUint32 aInterval)
//
// Wait for aInterval nanoseconds
//
	{
	// TO DO: work out the correct values for the hardware
	
	asm("subs r0, r0, #100 ");
	asm("1:");
	asm("subhis r0, r0, #5 ");	// 400MHz, 2 cycles = 5ns
	asm("bhi 1b");	
	__JUMP(,lr);
	}