Добавлены интерфейсы и драйверы
This commit is contained in:
commit
200ac69275
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"cmake": {
|
||||
"inc_dirs": [
|
||||
"./"
|
||||
],
|
||||
"srcs": [
|
||||
"./**.c"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue