From 4773801101047ed7843285852a22cb75148e8e5f Mon Sep 17 00:00:00 2001 From: Erki Date: Sat, 17 Apr 2021 23:32:10 +0300 Subject: [PATCH] add GetMillis() function to the ST HAL --- Peripherals/Inc/peripherals_hal_st.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Peripherals/Inc/peripherals_hal_st.hpp b/Peripherals/Inc/peripherals_hal_st.hpp index f503c2f..c59d65b 100644 --- a/Peripherals/Inc/peripherals_hal_st.hpp +++ b/Peripherals/Inc/peripherals_hal_st.hpp @@ -45,6 +45,11 @@ struct StaticHal #endif } + static std::uint32_t GetMillis() + { + return HAL_GetTick(); + } + static void Delay(const std::uint32_t milliseconds) { HAL_Delay(milliseconds);