mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: add native time info methods
This commit is contained in:
parent
a7d641c705
commit
265e9b8cc6
|
@ -255,4 +255,31 @@ uint64_t millis64()
|
||||||
return hrt_micros64() / 1000U;
|
return hrt_micros64() / 1000U;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
uint32_t native_micros()
|
||||||
|
{
|
||||||
|
return micros();
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t native_millis()
|
||||||
|
{
|
||||||
|
return millis();
|
||||||
|
}
|
||||||
|
|
||||||
|
uint16_t native_millis16()
|
||||||
|
{
|
||||||
|
return millis16();
|
||||||
|
}
|
||||||
|
|
||||||
|
uint64_t native_micros64()
|
||||||
|
{
|
||||||
|
return micros64();
|
||||||
|
}
|
||||||
|
|
||||||
|
uint64_t native_millis64()
|
||||||
|
{
|
||||||
|
return millis64();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace AP_HAL
|
} // namespace AP_HAL
|
||||||
|
|
Loading…
Reference in New Issue