commit 2b7e718c7214ad0ead0ab955e0d3e5cf4c2d45f6 Author: cfif Date: Tue Sep 30 15:52:33 2025 +0300 Добавлены интерфейсы и драйверы 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