Начало

This commit is contained in:
cfif 2025-09-23 17:12:43 +03:00
commit 0a14a16081
3 changed files with 41 additions and 0 deletions

12
Rtcs.c Normal file
View File

@ -0,0 +1,12 @@
//
// Created by cfif on 27.09.22.
//
#include "Rtcs.h"
#include "at32f435_437.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 "RtcArtery.h"
typedef struct {
tRtcArtery 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"
]
}
}