In adl_rtc.h, adl_rtcTime_t isdefined as below
typedef struct
{
u8 Year; // Year (Two digits)
u8 Month; // Month (1-12)
u8 Day; // Day of the month (1-31)
u8 Hour; // Hour (0-23)
u8 Minute; // Minute (0-59)
u8 Second; // Second (0-59)
u16 SecondFracPart; // Second fractional part (0-32767)
} adl_rtcTime_t;
And in the documentation we have this definition :
typedef struct
{
u16 Year; // Year (Four digits)
u8 Month; // Month (1-12)
u8 Day; // Day of the month (1-31)
u8 Hour; // Hour (0-23)
u8 Minute; // Minute (0-59)
u8 Second; // Second (0-59)
u8 Pad; // Not Used
} adl_rtcTime_t;
The first does not work and it works if I override it with the second one in my source code …
The problem was a shift of values (for example I have real hours value in minute field) …
The problem I notice too is that the Year in Four digits mode gives a result in 2 digit (0006 for my example).
Vincent.