/*
 * @Author: mbw
 * @Date: 2024-12-07 15:13:24
 * @LastEditors: mbw && 1600520629@qq.com
 * @LastEditTime: 2025-04-24 09:42:42
 * @FilePath: \ble_-tyq_-bjq_-ch584-m\bsp\src\bsp_tim.c
 * @Description: 
 * 
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
 */
#include "bsp_tim.h"
#include "HAL.h"

// volatile uint32_t tick_1ms_cnt = 0;

/**
 * @description: 
 * @return {uint32_t}
 */
uint32_t BSP_Get_Tick(void)
{
    /* Platform implementation */
    // return tick_1ms_cnt;
    return (TMOS_GetSystemClock() / 1.6);
}


// __INTERRUPT
// __HIGH_CODE
// void SysTick_Handler()
// {
//     static uint8_t cnt_ms = 0;

//     SysTick->SR = 0; 
//     tick_1ms_cnt++;

//     cnt_ms++;
// }

