2023-04-07 13:53:08 +02:00
|
|
|
#ifndef MYRTC_H
|
|
|
|
#define MYRTC_H
|
2023-04-04 14:36:29 +02:00
|
|
|
#include "stm32f10x.h"
|
|
|
|
#include "MyI2C.h"
|
|
|
|
|
2023-04-11 11:28:42 +02:00
|
|
|
typedef struct{
|
|
|
|
int seconds;
|
|
|
|
int minutes;
|
|
|
|
int hours;
|
|
|
|
int day;
|
|
|
|
int date;
|
|
|
|
int month;
|
|
|
|
int year;
|
|
|
|
} MyRTC_Struct_TypeDef;
|
|
|
|
|
2023-04-07 13:53:08 +02:00
|
|
|
void MyRTC_Init(void);
|
2023-04-11 11:28:42 +02:00
|
|
|
void MyRTC_GetTime(MyRTC_Struct_TypeDef * rtc);
|
2023-04-04 14:36:29 +02:00
|
|
|
|
|
|
|
#endif
|