/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : delay.c
  * @brief          : Delay driver module source file
  ******************************************************************************
  */
/* USER CODE END Header */

#include "delay.h"

/**
 * @brief Initialize delay module
 */
void delay_init(void) {
    hal_delay_init();
}

/**
 * @brief Delay in milliseconds
 * @param ms: Delay time in milliseconds
 */
void delay_ms(uint32_t ms) {
    hal_delay_ms(ms);
}

/**
 * @brief Delay in microseconds
 * @param us: Delay time in microseconds
 */
void delay_us(uint32_t us) {
    hal_delay_us(us);
}

/**
 * @brief Get current system tick count in milliseconds
 * @return Current tick count in milliseconds
 */
uint32_t delay_get_tick(void) {
    return hal_get_tick();
}
