Переписан модуль RTC

This commit is contained in:
cfif 2024-12-20 14:34:53 +03:00
parent f194f748b3
commit 6457856e75
2 changed files with 4 additions and 4 deletions

View File

@ -8,6 +8,6 @@ tRtc DEV_RTC;
void Rtc_Init(){
tRtc *env = &DEV_RTC;
vRtcInit(&env->rtcHw);
env->rtcIo = vRtcGetIo(&env->rtcHw);
vRtc_Init(&env->rtcHw);
env->rtcIo = RtcGet_Io(&env->rtcHw);
}

View File

@ -5,10 +5,10 @@
#ifndef UVEOS_ON_NATION_DEVRTC_H
#define UVEOS_ON_NATION_DEVRTC_H
#include "RTC_n32g45x.h"
#include "Rtc_Nation.h"
typedef struct {
tRtc_n32g45x rtcHw;
TRtcNational rtcHw;
tRtcIO rtcIo;
} tRtc;