1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/assp/omap3530_shared/omap3_mstick.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,49 @@
1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// omap3530/shared/mstick/omap3_mstick.h
1.18 +//
1.19 +
1.20 +#ifndef OMAP3_MSTICK_H
1.21 +#define OMAP3_MSTICK_H
1.22 +
1.23 +#include <e32cmn.h>
1.24 +
1.25 +namespace Omap3
1.26 +{
1.27 + namespace MsTick
1.28 + {
1.29 + /** Start the millisecond timer counting, call from Init3 stage of ASSP */
1.30 + IMPORT_C TInt Start();
1.31 +
1.32 + /** Start idle tick supression
1.33 + * @param aMaxSleepTicks Maximum number of ticks to sleep for
1.34 + * @return If >0 the number of ticks that will be suppressed (could be < aMaxSleepTicks)
1.35 + * @return If ==0 supression was not enabled
1.36 + */
1.37 + IMPORT_C TInt SuppressIdleTicks( TInt aMaxSleepTicks );
1.38 +
1.39 + /** End idle supression and restore tick timer to normal operation
1.40 + *
1.41 + * @param aMaxSleepTicks Original maximum number of ticks passed to SuppressIdleTicks()
1.42 + * @return Actual number of ticks since SuppressIdleTickw() was called
1.43 + */
1.44 + IMPORT_C TInt EndIdleTickSuppression( TInt aMaxSleepTicks );
1.45 + } // namespace MsTick
1.46 +} // namespace Omap3
1.47 +
1.48 +
1.49 +
1.50 +#endif // define OMAP3_MSTICK_H
1.51 +
1.52 +