Init
This commit is contained in:
commit
f194f748b3
|
|
@ -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);
|
||||||
|
}
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"dep": [
|
||||||
|
{
|
||||||
|
"type": "git",
|
||||||
|
"provider": "NAVIGATOR_UVEOS_NATION_TELIT",
|
||||||
|
"repo": "RTC_n32g45x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"cmake": {
|
||||||
|
"inc_dirs": [
|
||||||
|
"./"
|
||||||
|
],
|
||||||
|
"srcs": [
|
||||||
|
"./**.c"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue