实现串口驱动,移植方便

This commit is contained in:
冯佳
2026-01-22 16:36:56 +08:00
parent 2ef4dac5bd
commit 51e8d79f78
151 changed files with 4064 additions and 11050 deletions

32
HAL/Inc/hal_delay.h Normal file
View File

@ -0,0 +1,32 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : hal_delay.h
* @brief : Delay hardware abstraction layer header file
******************************************************************************
*/
/* USER CODE END Header */
#ifndef HAL_DELAY_H
#define HAL_DELAY_H
#include <stdint.h>
/**
* @brief Initialize delay module
*/
void hal_delay_init(void);
/**
* @brief Delay in milliseconds
* @param ms: Delay time in milliseconds
*/
void hal_delay_ms(uint32_t ms);
/**
* @brief Delay in microseconds
* @param us: Delay time in microseconds
*/
void hal_delay_us(uint32_t us);
#endif /* HAL_DELAY_H */