From 200ac69275880e3ddb39cf72f09fa1c5aca4bdba Mon Sep 17 00:00:00 2001 From: cfif Date: Tue, 30 Sep 2025 15:52:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9?= =?UTF-8?q?=D1=81=D1=8B=20=D0=B8=20=D0=B4=D1=80=D0=B0=D0=B9=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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..93ca4c5 --- /dev/null +++ b/Rtcs.c @@ -0,0 +1,11 @@ +// +// Created by cfif on 27.09.22. +// +#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..eedc38f --- /dev/null +++ b/Rtcs.h @@ -0,0 +1,19 @@ +// +// Created by cfif on 28.09.22. +// + +#ifndef RTCS_H +#define RTCS_H + +#include "RtcFC7240.h" + +typedef struct { + tRtcFlagchip rtc; + tRtcIO rtcI0; +} tRtcs; + +extern tRtcs RTCS; + +void Rtcs_Init(); + +#endif //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