This commit is contained in:
cfif 2024-12-04 13:10:48 +03:00
commit f194f748b3
3 changed files with 49 additions and 0 deletions

13
DevRtc.c Normal file
View File

@ -0,0 +1,13 @@
//
// Created by ilya on 16.02.23.
//
#include "DevRtc.h"
tRtc DEV_RTC;
void Rtc_Init(){
tRtc *env = &DEV_RTC;
vRtcInit(&env->rtcHw);
env->rtcIo = vRtcGetIo(&env->rtcHw);
}

19
DevRtc.h Normal file
View File

@ -0,0 +1,19 @@
//
// Created by ilya on 16.02.23.
//
#ifndef UVEOS_ON_NATION_DEVRTC_H
#define UVEOS_ON_NATION_DEVRTC_H
#include "RTC_n32g45x.h"
typedef struct {
tRtc_n32g45x rtcHw;
tRtcIO rtcIo;
} tRtc;
extern tRtc DEV_RTC;
void Rtc_Init();
#endif //UVEOS_ON_NATION_DEVRTC_H

17
modular.json Normal file
View File

@ -0,0 +1,17 @@
{
"dep": [
{
"type": "git",
"provider": "NAVIGATOR_UVEOS_NATION_TELIT",
"repo": "RTC_n32g45x"
}
],
"cmake": {
"inc_dirs": [
"./"
],
"srcs": [
"./**.c"
]
}
}