Hello All,
I'am trying to use Hibernation Mode of TM4C129x Series MCU . My issue is that Iam getting a warning message argument of type "struct tm *" is incompatible with parameter of type "struct tm *" in my code as shown below and hence the hibernate mode not working
struct tm sTime; uint32_t g_ui32MonthIdx, g_ui32DayIdx, g_ui32YearIdx; uint32_t g_ui32HourIdx, g_ui32MinIdx,g_ui32SecIdx; int main(Void) {
//System clock already enabled SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE); HibernateEnableExpClk(ui32SysClock); HibernateClockConfig(HIBERNATE_OSC_LOWDRIVE); HibernateRTCEnable(); // Configure the hibernate module counter to 24-hour calendar mode. HibernateCounterMode(HIBERNATE_COUNTER_24HR); HibernateCalendarSet(&sTime); //#169-D argument of type "struct tm *" is incompatible with parameter of type "struct tm *" sTime.tm_mon = 11; sTime.tm_mday = 17; sTime.tm_year = 117; sTime.tm_hour = 14; sTime.tm_min = 34; HibernateCalendarSet(&sTime);//#169-D argument of type "struct tm *" is incompatible with parameter of type "struct tm *" while(1) { HibernateCalendarGet(&sTime);//#169-D argument of type "struct tm *" is incompatible with parameter of type "struct tm *" g_ui32HourIdx = sTime.tm_hour ; g_ui32MinIdx = sTime.tm_min ; g_ui32MonthIdx = sTime.tm_mon; g_ui32DayIdx = sTime.tm_mday; g_ui32SecIdx = sTime.tm_sec; sTime.tm_year = sTime.tm_year + 1900; } }
kindly help in resolving the issue.