commit 66a335e2c9ef320947400a038b9e1fb1d3c04b4d Author: cfif Date: Mon Jun 2 13:26:41 2025 +0300 Init diff --git a/Inc/RtcIO.h b/Inc/RtcIO.h new file mode 100644 index 0000000..00e0340 --- /dev/null +++ b/Inc/RtcIO.h @@ -0,0 +1,22 @@ +// +// Created by cfif on 17.11.22. +// + +#ifndef MODULE_RTCIO_H +#define MODULE_RTCIO_H +#include "stdint.h" +#include + +typedef uint16_t (*RtcIOTransaction )(void *env, time_t *timestamp); +typedef uint16_t (*RtcIOTransactionTM )(void *env, struct tm *timestampTM); + +typedef struct { + void *env; + RtcIOTransaction set; + RtcIOTransaction get; + RtcIOTransactionTM setTM; + RtcIOTransactionTM getTM; +} tRtcIO; + + +#endif //MODULE_RTCIO_H diff --git a/modular.json b/modular.json new file mode 100644 index 0000000..9bdd478 --- /dev/null +++ b/modular.json @@ -0,0 +1,7 @@ +{ + "cmake": { + "inc_dirs": [ + "Inc" + ] + } +} \ No newline at end of file