2024-08-23 11:16:27 +08:00
|
|
|
#ifndef __BSP_RTC_H__
|
|
|
|
#define __BSP_RTC_H__
|
|
|
|
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2024-09-04 09:01:05 +08:00
|
|
|
extern uint8_t rtctime[3], rtcdate[3];
|
2024-08-23 11:16:27 +08:00
|
|
|
|
2024-08-23 14:07:32 +08:00
|
|
|
void BSP_Rtc_Get_Calendar(uint8_t *rtcdate, uint8_t *rtctime);
|
|
|
|
void BSP_Rtc_Alarm_Config(uint8_t hours, uint8_t minutes, uint8_t seconds);
|
|
|
|
void BSP_Rtc_DateTime_Cfg(uint8_t years, uint8_t months, uint8_t days, uint8_t hour, uint8_t minute, uint8_t second, uint8_t week);
|
2024-08-23 11:16:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // !__BSP_RTC_H__
|