first commit

This commit is contained in:
2025-02-19 14:46:14 +08:00
commit cde431e41c
221 changed files with 204599 additions and 0 deletions

22
APP/delay.c Normal file
View File

@ -0,0 +1,22 @@
//
// Created by IRIS on 25-2-10.
//
#include "delay.h"
void Delay_Init() {
HAL_TIM_Base_Start(&htim5); //启动定时器
}
void Delay_us(uint32_t us) {
uint32_t Time_Now;
uint32_t Ts;
__HAL_TIM_SetCounter(&htim5, 0);
while(Ts < us) {
Time_Now = __HAL_TIM_GET_COUNTER(&htim5);
Ts = Time_Now * 0.1;
}
}