navienginebsp/naviengine_assp/watchdog.h
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.h
       
    16 * Definitions for NE1_TBVariant ASSP
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef __A32WATCHDOG_H__
       
    25 #define __A32WATCHDOG_H__
       
    26 #include <e32const.h>
       
    27 #include <platform.h>
       
    28 #include <e32hal.h>
       
    29 #include <assp.h>
       
    30 #include <kernel/kern_priv.h>
       
    31 
       
    32 
       
    33 
       
    34 class TNaviEngineWatchdog
       
    35 	{
       
    36 public:
       
    37 	TNaviEngineWatchdog();
       
    38 	virtual ~TNaviEngineWatchdog(); // To shut up gcc98r2
       
    39 	virtual TInt Create();
       
    40 
       
    41 	/**
       
    42 	 * Enable/disable external watchdog timer (eWDT)
       
    43 	 */
       
    44 	void        SetTimer      (TUint aTimeoutInSeconds);
       
    45 	static void WatchdogTimer (TAny* aPtr);
       
    46 private:
       
    47 	NTimer iWatchdogTimer;         // Timer the kernel will fire to pat the dog
       
    48 	TUint  iWatchdogTimerPeriodMs; // the period of the timer that pats the dog, note this should be LESS than the actual watchdog timeout
       
    49 	};
       
    50 
       
    51 #endif // __A32WATCHDOG_H__