/**
|
* @file dev_time.c
|
* @author your name (you@domain.com)
|
* @brief
|
* @version 0.1
|
* @date 2023-04-05
|
*
|
* @copyright Copyright (c) 2023
|
*
|
*/
|
#include "ems_common.h"
|
|
#ifdef __cplusplus
|
extern "C" {
|
#endif
|
|
static uint32_t sys_time_ms = 0;
|
|
/* public functions --------------------------------------------------------- */
|
/**
|
* @brief SysTick ISR function.
|
* @retval None
|
*/
|
uint32_t ems_time_ms(void)
|
{
|
return sys_time_ms;
|
}
|
|
/* private functions -------------------------------------------------------- */
|
/**
|
* @brief SysTick ISR function.
|
* @retval None
|
*/
|
void SysTick_Handler(void)
|
{
|
sys_time_ms ++;
|
}
|
|
#ifdef __cplusplus
|
}
|
#endif
|
|
/* ----------------------------- end of file -------------------------------- */
|