Tools: add and use HAP_PERIPH_ENABLE_RTC

This commit is contained in:
Peter Barker 2023-10-08 14:46:27 +11:00 committed by Andrew Tridgell
parent cf96791fe2
commit 566371837c
3 changed files with 11 additions and 0 deletions

View File

@ -359,6 +359,10 @@ public:
AP_Networking networking;
#endif
#ifdef HAL_PERIPH_ENABLE_RTC
AP_RTC rtc;
#endif
#if HAL_GCS_ENABLED
GCS_Periph _gcs;
#endif

View File

@ -608,6 +608,12 @@ const AP_Param::Info AP_Periph_FW::var_info[] = {
GSCALAR(can_mirror_ports, "CAN_MIRROR_PORTS", 0),
#endif // HAL_PERIPH_CAN_MIRROR
#ifdef HAL_PERIPH_ENABLE_RTC
// @Group: RTC
// @Path: ../libraries/AP_RTC/AP_RTC.cpp
GOBJECT(rtc, "RTC", AP_RTC),
#endif
AP_VAREND
};

View File

@ -84,6 +84,7 @@ public:
k_param_battery_balance,
k_param_battery_hide_mask,
k_param_can_mirror_ports,
k_param_rtc,
};
AP_Int16 format_version;