commit 1ad4cfc18d3fdb79d77764667c90dd1a636b3e1a Author: cfif Date: Mon Jun 2 13:26:40 2025 +0300 Init 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