From 66a335e2c9ef320947400a038b9e1fb1d3c04b4d Mon Sep 17 00:00:00 2001 From: cfif Date: Mon, 2 Jun 2025 13:26:41 +0300 Subject: [PATCH] Init --- Inc/RtcIO.h | 22 ++++++++++++++++++++++ modular.json | 7 +++++++ 2 files changed, 29 insertions(+) create mode 100644 Inc/RtcIO.h create mode 100644 modular.json 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