/*********************************************************************//** * @brief Timer wait (milliseconds) * @param[in] time number of millisecond waiting * @return None **********************************************************************/ void TIM_Waits(uint32_t time) { TIM_Waitus(time * 1000000); }
void hw_wait_us (int us) { TIM_Waitus(us); }
/*********************************************************************//** * @brief Delay callback for timed SDIF/SDMMC functions * @param[in] time Number of milliSeconds to wait * @return None **********************************************************************/ void sdmmc_waitms(uint32_t time) { /* In an RTOS, the thread would sleep allowing other threads to run. For standalone operation, we just spin on a timer */ TIM_Waitus(time * 1000); }