From 28d827cedcc9e064e05adb886101e6dbec9086f9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 8 Oct 2023 14:27:07 +1100 Subject: [PATCH] AP_HAL_ChibiOS: add RTC support to GPS periphs that log this re-adds support for RTC into GPS peripherals that also log. This was removed as these boards were calling methods on the nullptr --- libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat | 1 + libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat | 1 + libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef.dat | 1 + 3 files changed, 3 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat index 49c88fe3f9537..0c8c2b46a8174 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/HerePro/hwdef.dat @@ -64,6 +64,7 @@ FLASH_RESERVE_START_KB 256 define GPS_UBLOX_MOVING_BASELINE TRUE define HAL_GCS_ENABLED 1 define HAL_LOGGING_ENABLED TRUE +define HAL_PERIPH_ENABLE_RTC 1 define HAL_NO_MONITOR_THREAD diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat index 295bde2cedb5a..e8096fd5c1c4f 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-F9P/hwdef.dat @@ -131,6 +131,7 @@ define GPS_MOVING_BASELINE 1 # Logging define HAL_LOGGING_ENABLED 1 +define HAL_PERIPH_ENABLE_RTC 1 define HAL_OS_FATFS_IO 1 # SD Card pins diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef.dat index 1a6c3ea56a6c2..70fe852ca5b51 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Sierra-PrecisionPoint/hwdef.dat @@ -125,6 +125,7 @@ define GPS_MAX_RATE_MS 200 # Logging define HAL_LOGGING_ENABLED 1 +define HAL_PERIPH_ENABLE_RTC 1 define HAL_OS_FATFS_IO 1 # SD Card pins