25 lines
570 B
C
25 lines
570 B
C
/***
|
||
* @Author:
|
||
* @Date: 2023-04-11 18:31:07
|
||
* @LastEditors: xxx
|
||
* @LastEditTime: 2023-04-11 18:31:20
|
||
* @Description:
|
||
* @email:
|
||
* @Copyright (c) 2023 by xxx, All Rights Reserved.
|
||
*/
|
||
|
||
#ifndef __DELAY_H
|
||
#define __DELAY_H
|
||
|
||
#include "sys.h"
|
||
|
||
void delay_init(uint16_t sysclk); /* 初始化延迟函数 */
|
||
void delay_ms(uint16_t nms); /* 延时nms */
|
||
void delay_us(uint32_t nus); /* 延时nus */
|
||
|
||
#if (!SYS_SUPPORT_OS) /* 没有使用Systick中断 */
|
||
void HAL_Delay(uint32_t Delay); /* HAL库的延时函数,SDIO等需要用到 */
|
||
#endif
|
||
|
||
#endif
|