Перенос на новую организацию GONEC
This commit is contained in:
commit
03642be4be
|
|
@ -0,0 +1,16 @@
|
|||
//
|
||||
// Created by cfif on 11.09.22.
|
||||
//
|
||||
|
||||
#ifndef RTC_H
|
||||
#define RTC_H
|
||||
|
||||
#include "RtcIO.h"
|
||||
#include <time.h>
|
||||
|
||||
uint16_t RtcGet(tRtcIO *io, time_t *timestamp);
|
||||
uint16_t RtcSet(tRtcIO *io, time_t *timestamp);
|
||||
uint16_t RtcGetTM(tRtcIO *io, struct tm *timestampTM);
|
||||
uint16_t RtcSetTM(tRtcIO *io, struct tm *timestampTM);
|
||||
|
||||
#endif //RTC_H
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
//
|
||||
// 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);
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"dep": [
|
||||
{
|
||||
"type": "git",
|
||||
"provider": "GONEC",
|
||||
"repo": "RtcInterface"
|
||||
}
|
||||
],
|
||||
"cmake": {
|
||||
"inc_dirs": [
|
||||
"Inc"
|
||||
],
|
||||
"srcs": [
|
||||
"Src/**.c"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue