Remove extranious watchdog features
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Tue, 9 Oct 2018 20:19:18 +0000 (13:19 -0700)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Tue, 9 Oct 2018 20:19:18 +0000 (13:19 -0700)
src/avr/src/hardware.c

index 5528d9bdec919722b57883e03e86aecc862cf49d..ae7a2b37713a2e462b1e924bccec4164b7ef780f 100644 (file)
@@ -146,22 +146,4 @@ void hw_reset_handler() {
 }
 
 
-uint8_t hw_disable_watchdog() {
-  uint8_t state = WDT.CTRL;
-  cli();
-  CCP = CCP_IOREG_gc;
-  WDT.CTRL = WDT_CEN_bm;
-  sei();
-  return state;
-}
-
-
-void hw_restore_watchdog(uint8_t state) {
-  cli();
-  CCP = CCP_IOREG_gc;
-  WDT.CTRL = state | WDT_CEN_bm;
-  sei();
-}
-
-
 const char *get_hw_id() {return hw.id;}