STM32CubeMX-Keil_uVision5/FinalHomework/Core/Inc/variable.h

31 lines
583 B
C
Raw Normal View History

2025-01-07 10:02:18 +08:00
#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;
2025-01-07 10:43:34 +08:00
typedef struct {
uint8_t mSecond;
uint8_t mMinute;
uint8_t mHour;
uint8_t mTimeCount;
uint8_t bSecondIsOk;
uint8_t mTenMilCount;
uint8_t bTenMilIsOk;
} structTime;
2025-01-07 10:02:18 +08:00
#ifdef __cplusplus
}
#endif
#endif /* __VARIABLE_H */