第一次实验-上课示例

This commit is contained in:
2024-10-08 21:33:28 +08:00
parent ffc675c5b3
commit b0ebd03d19
4 changed files with 109 additions and 61 deletions

20
exp1/Core/Inc/variable.h Normal file
View File

@@ -0,0 +1,20 @@
#include <stdint.h>
#ifndef __VARIABLE_H
#define __VARIABLE_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
uint8_t mMilSecCount; // 毫秒计数
uint8_t bTenMilSecOk; // 10毫秒标志位
uint8_t mTimeCount; // 秒计数
uint8_t bTimeOk; // 秒标志位
} stSysTickTimer;
#ifdef __cplusplus
}
#endif
#endif /* __VARIABLE_H */