Перенесена из k1921vk028/1921vk028/lib/rtc_service. Ядро rtc_service_core.c зависит только от stddef, string и собственных заголовков; доступ к часам и backup-памяти вынесен в rtc_service_port.h. Порт для K1921VK028 идёт в комплекте и служит образцом для следующего МК.
22 lines
667 B
C
22 lines
667 B
C
/**
|
|
****************************************************************************
|
|
* @file rtc_service.h
|
|
* @brief Портируемый модуль RTC Service.
|
|
****************************************************************************
|
|
*/
|
|
|
|
#ifndef __RTC_SERVICE_H
|
|
#define __RTC_SERVICE_H
|
|
|
|
#include "rtc_service_types.h"
|
|
|
|
RtcService_Result RtcService_Init(const RtcService_InitConfig* cfg, RtcService_Status* status);
|
|
|
|
RtcService_Result RtcService_GetDateTime(RtcService_DateTime* dt);
|
|
|
|
RtcService_Result RtcService_SetDateTime(const RtcService_DateTime* dt);
|
|
|
|
const char* RtcService_ResultToText(RtcService_Result res);
|
|
|
|
#endif /* __RTC_SERVICE_H */
|