mirror of https://github.com/ArduPilot/ardupilot
Tools: add and use HAP_PERIPH_ENABLE_RTC
This commit is contained in:
parent
cf96791fe2
commit
566371837c
|
@ -359,6 +359,10 @@ public:
|
||||||
AP_Networking networking;
|
AP_Networking networking;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAL_PERIPH_ENABLE_RTC
|
||||||
|
AP_RTC rtc;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HAL_GCS_ENABLED
|
#if HAL_GCS_ENABLED
|
||||||
GCS_Periph _gcs;
|
GCS_Periph _gcs;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -608,6 +608,12 @@ const AP_Param::Info AP_Periph_FW::var_info[] = {
|
||||||
GSCALAR(can_mirror_ports, "CAN_MIRROR_PORTS", 0),
|
GSCALAR(can_mirror_ports, "CAN_MIRROR_PORTS", 0),
|
||||||
#endif // HAL_PERIPH_CAN_MIRROR
|
#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
|
AP_VAREND
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,7 @@ public:
|
||||||
k_param_battery_balance,
|
k_param_battery_balance,
|
||||||
k_param_battery_hide_mask,
|
k_param_battery_hide_mask,
|
||||||
k_param_can_mirror_ports,
|
k_param_can_mirror_ports,
|
||||||
|
k_param_rtc,
|
||||||
};
|
};
|
||||||
|
|
||||||
AP_Int16 format_version;
|
AP_Int16 format_version;
|
||||||
|
|
Loading…
Reference in New Issue