From 910129eafca2ca1d0e56aeda52d407231e6857cb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 20 Oct 2019 21:50:04 +1100 Subject: [PATCH] HAL_ChibiOS: enable watchdog in AP_Periph firmwares --- libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat | 3 +++ libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef.dat | 3 +++ libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat | 3 +++ 3 files changed, 9 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat index 4678e5546d..901201b61a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV_GPS/hwdef.dat @@ -19,6 +19,9 @@ env AP_PERIPH 1 STM32_ST_USE_TIMER 5 +# enable watchdog +define HAL_WATCHDOG_ENABLED_DEFAULT true + # crystal frequency OSCILLATOR_HZ 16000000 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef.dat index ea5f44bd26..cefa621555 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/ZubaxGNSS/hwdef.dat @@ -68,6 +68,9 @@ PB11 USART3_RX USART3 SPEED_HIGH NODMA # don't enable DMA in UART driver define HAL_UART_NODMA +# enable watchdog +define HAL_WATCHDOG_ENABLED_DEFAULT true + # enable CAN support PA11 CAN_RX CAN PB9 CAN_TX CAN diff --git a/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat index 23e64695d7..0a6bfb2a16 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/f103-periph/hwdef.dat @@ -16,6 +16,9 @@ APJ_BOARD_ID 1000 # setup build for a peripheral firmware env AP_PERIPH 1 +# enable watchdog +define HAL_WATCHDOG_ENABLED_DEFAULT true + # crystal frequency OSCILLATOR_HZ 8000000