Добавлены интерфейсы и драйверы

This commit is contained in:
cfif 2025-09-30 15:52:33 +03:00
commit 200ac69275
3 changed files with 40 additions and 0 deletions

11
Rtcs.c Normal file
View File

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

19
Rtcs.h Normal file
View File

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

10
modular.json Normal file
View File

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