Some watchdog basics
This commit is contained in:
29
de/darkress/pic16f84sim/microcontroller/Watchdog.java
Normal file
29
de/darkress/pic16f84sim/microcontroller/Watchdog.java
Normal file
@@ -0,0 +1,29 @@
|
||||
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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user