Переписан модуль RTC
This commit is contained in:
parent
f194f748b3
commit
6457856e75
4
DevRtc.c
4
DevRtc.c
|
|
@ -8,6 +8,6 @@ tRtc DEV_RTC;
|
||||||
void Rtc_Init(){
|
void Rtc_Init(){
|
||||||
tRtc *env = &DEV_RTC;
|
tRtc *env = &DEV_RTC;
|
||||||
|
|
||||||
vRtcInit(&env->rtcHw);
|
vRtc_Init(&env->rtcHw);
|
||||||
env->rtcIo = vRtcGetIo(&env->rtcHw);
|
env->rtcIo = RtcGet_Io(&env->rtcHw);
|
||||||
}
|
}
|
||||||
4
DevRtc.h
4
DevRtc.h
|
|
@ -5,10 +5,10 @@
|
||||||
#ifndef UVEOS_ON_NATION_DEVRTC_H
|
#ifndef UVEOS_ON_NATION_DEVRTC_H
|
||||||
#define UVEOS_ON_NATION_DEVRTC_H
|
#define UVEOS_ON_NATION_DEVRTC_H
|
||||||
|
|
||||||
#include "RTC_n32g45x.h"
|
#include "Rtc_Nation.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
tRtc_n32g45x rtcHw;
|
TRtcNational rtcHw;
|
||||||
tRtcIO rtcIo;
|
tRtcIO rtcIo;
|
||||||
} tRtc;
|
} tRtc;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue