first commit

This commit is contained in:
2026-01-24 20:03:14 +08:00
commit a2224908e3
318 changed files with 278538 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
/**
****************************************************************************************************
* @file delay.h
* @author 正点原子团队(ALIENTEK)
* @version V1.0
* @date 2020-04-17
* @brief 使用SysTick的普通计数模式对延迟进行管理(支持ucosii)
* 提供delay_init初始化函数 delay_us和delay_ms等延时函数
* @license Copyright (c) 2020-2032, 广州市星翼电子科技有限公司
****************************************************************************************************
* @attention
*
* 实验平台:正点原子 STM32F103开发板
* 在线视频:www.yuanzige.com
* 技术论坛:www.openedv.com
* 公司网址:www.alientek.com
* 购买地址:openedv.taobao.com
*
* 修改说明
* V1.0 20211103
* 第一次发布
*
****************************************************************************************************
*/
#ifndef __DELAY_H
#define __DELAY_H
#include "./SYSTEM/sys/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) /* 如果不支持OS */
void HAL_Delay(uint32_t Delay); /* HAL库的延时函数HAL库内部用到 */
#endif
#endif