30 lines
452 B
Java
30 lines
452 B
Java
package de.darkress.pic16f84sim.microcontroller;
|
|
|
|
public class Watchdog
|
|
{
|
|
private static int watchdogTimer = 18000;
|
|
public static int getWatchdogTimer()
|
|
{
|
|
return watchdogTimer;
|
|
}
|
|
|
|
public static void increaseWatchdogTimer()
|
|
{
|
|
watchdogTimer++;
|
|
}
|
|
|
|
private static void checkWatchdog()
|
|
{
|
|
if(watchdogTimer > 18000)
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
private static void resetProgram()
|
|
{
|
|
|
|
}
|
|
|
|
}
|