BMS STM32 V4.0.0.0
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#ifndef __RTC_H
|
||||
#define __RTC_H
|
||||
#include "stm32f10x.h"
|
||||
|
||||
//时间结构体
|
||||
typedef struct
|
||||
{
|
||||
vu8 sec;
|
||||
vu8 min;
|
||||
vu8 hour;
|
||||
vu8 week;
|
||||
vu8 w_date;
|
||||
vu8 w_month;
|
||||
vu8 w_year;
|
||||
}_calendar_obj;
|
||||
|
||||
extern _calendar_obj calendar; //日历结构体
|
||||
extern _calendar_obj calendar_WRITE;
|
||||
extern _calendar_obj calendar_BACKUP;
|
||||
|
||||
extern uint8_t uf_RTC_Init(void);
|
||||
extern uint8_t uf_RTC_Update(void); //用于上位机修改时间
|
||||
extern uint8_t RTC_Set(uint8_t ear,uint8_t smon,uint8_t sday,uint8_t hour,uint8_t min,uint8_t sec);
|
||||
extern uint8_t RTC_Get(void);
|
||||
extern void RTC_BackUp(void);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user