32 lines
584 B
C
32 lines
584 B
C
#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;
|
|
|
|
|
|
typedef struct {
|
|
uint8_t mSecond;
|
|
uint8_t mMinute;
|
|
uint8_t mHour;
|
|
uint8_t mTimeCount;
|
|
uint8_t bSecondIsOk;
|
|
uint8_t mTenMilCount;
|
|
uint8_t bTenMilIsOk;
|
|
} structTime;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __VARIABLE_H */
|