Update contrib.
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // template\template_assp\template_assp.cia
15 // Template ASSP architecture layer
20 #include <template_assp_priv.h>
22 __NAKED__ TUint64 DoRead64(TLinAddr /*aAddr*/)
24 asm("ldmia r0, {r0-r1} ");
29 __NAKED__ void DoWrite64(TLinAddr aAddr, TUint64 aValue)
32 asm("stmia r0, {r2-r3} ");
34 asm("stmia r0, {r1-r2} ");
39 EXPORT_C __NAKED__ void TTemplate::BootWaitMilliSeconds(TInt aDuration)
41 // Active waiting loop (not to be used after System Tick timer has been set up - Init3()
47 // Program a Hardware Timer to generate the required duration, and then loop until the timer expires.
48 // Do NOT use interrupts!
53 __NAKED__ void TTemplate::NanoWait(TUint32 aInterval)
55 // Wait for aInterval nanoseconds
58 // TO DO: work out the correct values for the hardware
60 asm("sub r0, r0, #100");
62 asm("subs r0, r0, #20");