mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
platforms: fix redefinition for QURT
This commit is contained in:
parent
aac7b8d7eb
commit
ffb73f6496
@ -594,6 +594,7 @@ void abstime_to_ts(struct timespec *ts, hrt_abstime abstime)
|
||||
ts->tv_nsec = abstime * 1000;
|
||||
}
|
||||
|
||||
#if !defined(__PX4_QURT)
|
||||
int px4_clock_gettime(clockid_t clk_id, struct timespec *tp)
|
||||
{
|
||||
if (clk_id == CLOCK_MONOTONIC) {
|
||||
@ -615,6 +616,7 @@ int px4_clock_gettime(clockid_t clk_id, struct timespec *tp)
|
||||
return system_clock_gettime(clk_id, tp);
|
||||
}
|
||||
}
|
||||
#endif // !defined(__PX4_QURT)
|
||||
|
||||
#if defined(ENABLE_LOCKSTEP_SCHEDULER)
|
||||
int px4_clock_settime(clockid_t clk_id, const struct timespec *ts)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user