Runs at 25Hz, can be enabled and disabled via the command line
Signed-off-by: Keith Packard <keithp@keithp.com>
ao_usb_stm.c \
ao_exti_stm.c \
ao_adc_stm.c \
- ao_data.c
+ ao_data.c \
+ ao_watchdog.c
PRODUCT=Fox1IHU-v1
PRODUCT_DEF=-DFOX
ao_usb_init();
+ ao_watchdog_init();
+
ao_start_scheduler();
return 0;
}
#define AO_ADC_SQ13 AO_ADC_TEMP
#define AO_ADC_SQ13_NAME "temp"
+/* Watchdog timer */
+
+#define AO_WATCHDOG_INTERVAL AO_MS_TO_TICKS(40)
+#define AO_WATCHDOG_PORT (&stm_gpiod)
+#define AO_WATCHDOG_BIT 3
+
#endif /* _AO_PINS_H_ */