From 8cfedd8b4658619d7e3c99ae68df0bf69b4adc21 Mon Sep 17 00:00:00 2001
From: Peter Barker <pbarker@barker.dropbear.id.au>
Date: Wed, 8 Aug 2018 14:56:28 +1000
Subject: [PATCH] AP_HAL_ChibiOS: implement 'uint16_t millis16'

---
 libraries/AP_HAL_ChibiOS/system.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libraries/AP_HAL_ChibiOS/system.cpp b/libraries/AP_HAL_ChibiOS/system.cpp
index c607e86c67..5a8c909917 100644
--- a/libraries/AP_HAL_ChibiOS/system.cpp
+++ b/libraries/AP_HAL_ChibiOS/system.cpp
@@ -159,6 +159,11 @@ uint32_t millis()
     return hrt_millis32();
 }
 
+uint16_t millis16()
+{
+    return hrt_millis32() & 0xFFFF;
+}
+
 uint64_t micros64()
 {
     return hrt_micros64();