实现串口驱动,移植方便
This commit is contained in:
32
HAL/Inc/hal_delay.h
Normal file
32
HAL/Inc/hal_delay.h
Normal 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 */
|
||||
Reference in New Issue
Block a user