HAL_ChibiOS: add native time info methods

This commit is contained in:
Siddharth Purohit 2020-08-09 16:05:38 +05:30 committed by Andrew Tridgell
parent a7d641c705
commit 265e9b8cc6
1 changed files with 27 additions and 0 deletions

View File

@ -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