Init
This commit is contained in:
commit
1ad4cfc18d
|
|
@ -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);
|
||||||
|
}
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"cmake": {
|
||||||
|
"inc_dirs": [
|
||||||
|
"./"
|
||||||
|
],
|
||||||
|
"srcs": [
|
||||||
|
"./**.c"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue