williamr@4: // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). williamr@4: // All rights reserved. williamr@4: // This component and the accompanying materials are made available williamr@4: // under the terms of the License "Eclipse Public License v1.0" williamr@4: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@4: // williamr@4: // Initial Contributors: williamr@4: // Nokia Corporation - initial contribution. williamr@4: // williamr@4: // Contributors: williamr@4: // williamr@4: // Description: williamr@4: // omap3530/shared/mstick/omap3_mstick.h williamr@4: // williamr@4: williamr@4: #ifndef OMAP3_MSTICK_H williamr@4: #define OMAP3_MSTICK_H williamr@4: williamr@4: #include williamr@4: williamr@4: namespace Omap3 williamr@4: { williamr@4: namespace MsTick williamr@4: { williamr@4: /** Start the millisecond timer counting, call from Init3 stage of ASSP */ williamr@4: IMPORT_C TInt Start(); williamr@4: williamr@4: /** Start idle tick supression williamr@4: * @param aMaxSleepTicks Maximum number of ticks to sleep for williamr@4: * @return If >0 the number of ticks that will be suppressed (could be < aMaxSleepTicks) williamr@4: * @return If ==0 supression was not enabled williamr@4: */ williamr@4: IMPORT_C TInt SuppressIdleTicks( TInt aMaxSleepTicks ); williamr@4: williamr@4: /** End idle supression and restore tick timer to normal operation williamr@4: * williamr@4: * @param aMaxSleepTicks Original maximum number of ticks passed to SuppressIdleTicks() williamr@4: * @return Actual number of ticks since SuppressIdleTickw() was called williamr@4: */ williamr@4: IMPORT_C TInt EndIdleTickSuppression( TInt aMaxSleepTicks ); williamr@4: } // namespace MsTick williamr@4: } // namespace Omap3 williamr@4: williamr@4: williamr@4: williamr@4: #endif // define OMAP3_MSTICK_H williamr@4: williamr@4: