Files
stm32-iot-sensor-node/mylib/systick.h
T
2026-10-19 15:47:18 +08:00

20 lines
366 B
C

#ifndef __SYSTICK_H
#define __SYSTICK_H
#include <stm32f10x_conf.h>
#include <stm32f10x.h>
// 定义系统时钟位 72Mhz
#define SYSCLK (72)
// 初始化 systick
void systick_init(void);
// 延时 us 微秒
void delay_us(u32 us);
// 延时 ms 毫秒
void delay_ms(u32 ms);
// 延时 second 秒
void delay_s(u32 second);
#endif //__SYSTICK_H