controller-pcba/User/driver/platform_support.h

24 lines
392 B
C

#ifndef __PLATFORM_SUPPORT_H
#define __PLATFORM_SUPPORT_H
/* 包含文件 */
#include <stdint.h>
#include "stm32f4xx_hal.h"
/* 定义 */
#define SUCCESS 0
#define FAILURE -1
/* 函数声明 */
/**
* @brief 毫秒延时函数
* @param ms - 延时时间,单位:毫秒
* @return 无
*/
static inline void mdelay(uint32_t ms)
{
HAL_Delay(ms);
}
#endif /* __PLATFORM_SUPPORT_H */