 // Put LEDs + resistors (100-220 ohm) between PA0,PA1,PA2,PA3 and 3.3V
 // Put momentary pushbuttons between PA4,PA5 and 3.3V
 
+//#include "c:/users/alexander_pruss/Documents/Arduino/hardware/addMidiHID/STM32F1/system/libmaple/include/libmaple/iwdg.h"
+#include <libmaple/iwdg.h>
+#include "dwt.h"
 #include "debounce.h"
 #include "gamecube.h"
 
 #undef SERIAL_DEBUG
 
+const uint32_t watchdogSeconds = 10;
 const uint32_t numInjectionModes = sizeof(injectors)/sizeof(*injectors);
 
 const uint32_t indicatorLEDs[] = { PA0, PA1, PA2, PA3 };

void loop() {
  GameCubeData_t data;

  uint32_t t0 = millis();

  while((millis()-t0) < 6) {

//    If on Windows, run drivers\win\install_drivers.bat
// Note: You may need to adjust permissions on some of the dll, exe and bat files.

// Facing Gamecube socket (as on console), flat on top:
//    123
//    ===
