Ajout Watchdog hardware au programme + autres gossages
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#ifndef COMPUTERBOARDINTERFACE_H
|
||||
#define COMPUTERBOARDINTERFACE_H
|
||||
#include "minwindef.h"
|
||||
|
||||
#define CPU_DEFAULT_WATCHDOG_TIMEOUT 600 //10 minutes.
|
||||
#define CPU_LIBRARY_NAME "dtSBC87853x64"
|
||||
|
||||
class CComputerBoardInterface
|
||||
{
|
||||
public:
|
||||
CComputerBoardInterface();
|
||||
int Init();
|
||||
int DeInit();
|
||||
int StartCPUWatchdog(int TimeoutInSeconds = CPU_DEFAULT_WATCHDOG_TIMEOUT); //Timeout in seconds
|
||||
int StopCPUWatchdog();
|
||||
int KickCPUWatchdog();
|
||||
|
||||
private:
|
||||
int LoadLibrary();
|
||||
int UnloadLibrary();
|
||||
};
|
||||
|
||||
#endif // COMPUTERBOARDINTERFACE_H
|
||||
Reference in New Issue
Block a user