AP_HAL_ChibiOS: implement 'uint16_t millis16'

This commit is contained in:
Peter Barker 2018-08-08 14:56:28 +10:00 committed by Andrew Tridgell
parent 0519949e21
commit 8cfedd8b46
1 changed files with 5 additions and 0 deletions

View File

@ -159,6 +159,11 @@ uint32_t millis()
return hrt_millis32();
}
uint16_t millis16()
{
return hrt_millis32() & 0xFFFF;
}
uint64_t micros64()
{
return hrt_micros64();