This commit is contained in:
cfif 2025-06-02 13:26:40 +03:00
commit 1ad4cfc18d
3 changed files with 40 additions and 0 deletions

11
Rtcs.c Normal file
View File

@ -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);
}

19
Rtcs.h Normal file
View File

@ -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

10
modular.json Normal file
View File

@ -0,0 +1,10 @@
{
"cmake": {
"inc_dirs": [
"./"
],
"srcs": [
"./**.c"
]
}
}