navienginebsp/naviengine_assp/naviengine_assp.cia
changeset 0 5de814552237
equal deleted inserted replaced
-1:000000000000 0:5de814552237
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 * naviengine_assp\naviengine.cia
       
    16 * NE1_TBVariant ASSP architecture layer
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #include <e32cia.h>
       
    23 #include <naviengine_priv.h>
       
    24 
       
    25 EXPORT_C __NAKED__ void TNaviEngine::BootWaitMilliSeconds(TInt aDuration)
       
    26 //
       
    27 // Active waiting loop (not to be used after System Tick timer has been set up - Init3()
       
    28 //
       
    29 	{
       
    30 	//
       
    31 	// TO DO: (optional)
       
    32 	//
       
    33 	// Program a Hardware Timer to generate the required duration, and then loop until the timer expires.
       
    34 	// Do NOT use interrupts!
       
    35 	//
       
    36 	}
       
    37 
       
    38 
       
    39 __NAKED__ void TNaviEngine::NanoWait(TUint32 aInterval)
       
    40 //
       
    41 // Wait for aInterval nanoseconds
       
    42 //
       
    43 	{
       
    44 	// TO DO: work out the correct values for the hardware
       
    45 	
       
    46 	asm("subs r0, r0, #100 ");
       
    47 	asm("1:");
       
    48 	asm("subhis r0, r0, #5 ");	// 400MHz, 2 cycles = 5ns
       
    49 	asm("bhi 1b");	
       
    50 	__JUMP(,lr);
       
    51 	}