From 1ad4cfc18d3fdb79d77764667c90dd1a636b3e1a Mon Sep 17 00:00:00 2001 From: cfif Date: Mon, 2 Jun 2025 13:26:40 +0300 Subject: [PATCH] Init --- Rtcs.c | 11 +++++++++++ Rtcs.h | 19 +++++++++++++++++++ modular.json | 10 ++++++++++ 3 files changed, 40 insertions(+) create mode 100644 Rtcs.c create mode 100644 Rtcs.h create mode 100644 modular.json diff --git a/Rtcs.c b/Rtcs.c new file mode 100644 index 0000000..b28fc3b --- /dev/null +++ b/Rtcs.c @@ -0,0 +1,11 @@ +// +// Created by ilya on 25.03.24. +// +#include "Rtcs.h" + +tRtcs RTCS; + +void Rtcs_Init() { + RTCS.rtc = vRtcInit(); + RTCS.rtcI0 = vRtcGetIo(&RTCS.rtc); +} diff --git a/Rtcs.h b/Rtcs.h new file mode 100644 index 0000000..e203a49 --- /dev/null +++ b/Rtcs.h @@ -0,0 +1,19 @@ +// +// Created by ilya on 25.03.24. +// + +#ifndef SMART_COMPONENTS_RTCS_H +#define SMART_COMPONENTS_RTCS_H + +#include "RtcArtery.h" + +typedef struct { + tRtcArtery rtc; + tRtcIO rtcI0; +} tRtcs; + +extern tRtcs RTCS; + +void Rtcs_Init(); + +#endif //SMART_COMPONENTS_RTCS_H diff --git a/modular.json b/modular.json new file mode 100644 index 0000000..0dd1901 --- /dev/null +++ b/modular.json @@ -0,0 +1,10 @@ +{ + "cmake": { + "inc_dirs": [ + "./" + ], + "srcs": [ + "./**.c" + ] + } +} \ No newline at end of file