From 99cf9c4dc5855b1f5f26d00267fdbbe672ee27a7 Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Mon, 5 Oct 2015 08:38:46 -0400 Subject: Initial commit --- watchdog.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 watchdog.c (limited to 'watchdog.c') diff --git a/watchdog.c b/watchdog.c new file mode 100644 index 0000000..a5d37a2 --- /dev/null +++ b/watchdog.c @@ -0,0 +1,14 @@ +#include "fossil.h" +#include +#include + +void WatchDog(unsigned char function) +{ + union REGS regs; + + regs.h.ah = 0x14; + regs.h.al = (unsigned char) function; + regs.x.dx = (unsigned char) port; + int86(FOSSIL_INT, ®s, ®s); + return; +} -- cgit v1.2.3