Initial import of STM32 IoT sensor node

This commit is contained in:
yzfh
2026-10-19 15:47:18 +08:00
commit a51794b022
100 changed files with 46274 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
#ifndef __DELAY_H
#define __DELAY_H
#include "stm32f10x_conf.h"
#define SYSCLK 72 //系统时钟的基数(注:是72而不是72M)
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
void delay_init(void); //延时函数的初始化
void delay_ms(u16 nms); //毫秒级的延时函数(参数为毫秒数)
void delay_us(u32 nus); //微妙级的延时函数(参数为微妙数)
#endif