void Delay_us(uint16_t us)
{
HAL_TIM_Base_Start(&htim6);
__HAL_TIM_SetCounter(&htim6, 0);
us = (us > 4
STM32 HAL库实现微秒级延时
最新推荐文章于 2024-07-09 19:07:18 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
void Delay_us(uint16_t us)
{
HAL_TIM_Base_Start(&htim6);
__HAL_TIM_SetCounter(&htim6, 0);
us = (us > 4