Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // rtc.h
- //
- #include <stdint.h>
- #include <stdbool.h>
- #ifndef _RTC_H
- #define _RTC_H
- typedef struct
- {
- uint8_t Year; // Год
- uint8_t Month; // Месяц
- uint8_t Day; // День месяца
- uint8_t DayOfWeek; // День недели
- uint8_t Hours; // Часы
- uint8_t Minutes; // Минуты
- uint8_t Seconds; // Секунды
- } TDateTime;
- // Инициализация модуля
- void rtc_Init(void);
- // Сброс состояния часов
- void rtc_Reset(void);
- // Получить текущее время
- void rtc_Get(TDateTime * DateTime);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement