Some watchdog basics

This commit is contained in:
Darkress
2023-06-17 20:05:58 +02:00
parent f2423d0d71
commit 2b1f8871d2
5 changed files with 59 additions and 14 deletions

View 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()
{
}
}