Rtc/Src/Rtc.c

22 lines
479 B
C

//
// Created by cfif on 17.11.22.
//
#include "Rtc.h"
#include "SystemDelayInterface.h"
uint16_t RtcSet(tRtcIO *io, time_t *timestamp) {
return io->set(io->env, timestamp);
}
uint16_t RtcGet(tRtcIO *io, time_t *timestamp) {
return io->get(io->env, timestamp);
}
uint16_t RtcSetTM(tRtcIO *io, struct tm *timestampTM) {
return io->setTM(io->env, timestampTM);
}
uint16_t RtcGetTM(tRtcIO *io, struct tm *timestampTM) {
return io->getTM(io->env, timestampTM);
}