/* * Copyright (c) 2018, I-SENSE group of ICCS * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Zephyr's implementation for STM32Cube HAL core initialization * functions. These functions are declared as __weak in * STM32Cube HAL in order to be overwritten in case of other * implementations. */ #include #include /** * @brief This function configures the source of stm32cube time base. * Cube HAL expects a 1ms tick which matches with k_uptime_get_32. * Tick interrupt priority is not used * @return HAL status */ uint32_t HAL_GetTick(void) { return k_uptime_get_32(); } /** * @brief This function provides minimum delay (in milliseconds) based * on variable incremented. * @param Delay: specifies the delay time length, in milliseconds. * @return None */ void HAL_Delay(__IO uint32_t Delay) { k_msleep(Delay); }