commit f194f748b37a1cba5d29667fca235819b19190a0 Author: cfif Date: Wed Dec 4 13:10:48 2024 +0300 Init diff --git a/DevRtc.c b/DevRtc.c new file mode 100644 index 0000000..e05db70 --- /dev/null +++ b/DevRtc.c @@ -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); +} \ No newline at end of file diff --git a/DevRtc.h b/DevRtc.h new file mode 100644 index 0000000..c500995 --- /dev/null +++ b/DevRtc.h @@ -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 diff --git a/modular.json b/modular.json new file mode 100644 index 0000000..751d1d4 --- /dev/null +++ b/modular.json @@ -0,0 +1,17 @@ +{ + "dep": [ + { + "type": "git", + "provider": "NAVIGATOR_UVEOS_NATION_TELIT", + "repo": "RTC_n32g45x" + } + ], + "cmake": { + "inc_dirs": [ + "./" + ], + "srcs": [ + "./**.c" + ] + } +} \ No newline at end of file