comparison gsm-fw/g23m-aci/aci/cmh_mmq.c @ 794:b380a85d77d5

aci/cmh_mmq.c: RTC function interface reverted to the classic TCS211 way
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 16 Mar 2015 03:31:35 +0000
parents c77d5b1fd6a2
children
comparison
equal deleted inserted replaced
793:c77d5b1fd6a2 794:b380a85d77d5
15 | Texas Instruments Berlin, AG. 15 | Texas Instruments Berlin, AG.
16 +----------------------------------------------------------------------------- 16 +-----------------------------------------------------------------------------
17 | Purpose : This module provides the query functions related to the 17 | Purpose : This module provides the query functions related to the
18 | protocol stack adapter for mobility management. 18 | protocol stack adapter for mobility management.
19 +----------------------------------------------------------------------------- 19 +-----------------------------------------------------------------------------
20 Aug 02, 2006 REF:OMAPS00083404 Prabakar R (a0393213)
21 Description: Removal of clone code: entity GDI
22 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date().
23 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be
24 consistent with the new interface.
25 */ 20 */
26 21
27 #ifndef CMH_MMQ_C 22 #ifndef CMH_MMQ_C
28 #define CMH_MMQ_C 23 #define CMH_MMQ_C
29 #endif 24 #endif
866 return( AT_FAIL ); 861 return( AT_FAIL );
867 } 862 }
868 863
869 TRACE_EVENT("qAT_PlusCCLK(): get time and date " ); 864 TRACE_EVENT("qAT_PlusCCLK(): get time and date " );
870 #ifndef _SIMULATION_ 865 #ifndef _SIMULATION_
871 /* 866 ret = rtc_get_time_date((T_RTC_DATE *) date_s, (T_RTC_TIME *) time_s);
872 Aug 02, 2006 REF:OMAPS00083404 Prabakar R (a0393213)
873 Description: Removal of clone code: entity GDI
874 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date().
875 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be
876 consistent with the new interface.
877 */
878 ret = rtc_get_time_date((T_RTC_DATE *) date_s, (T_RTC_TIME *) time_s, RTC_TIME_TYPE_CURRENT);
879 switch (ret) 867 switch (ret)
880 { 868 {
881 case 0: /* RVF_OK */ 869 case 0: /* RVF_OK */
882 #ifdef FF_TIMEZONE 870 #ifdef FF_TIMEZONE
883 *timeZone = RTC_GetCurrentTZ(); /* Get current timezone now time and date are obtained.*/ 871 *timeZone = RTC_GetCurrentTZ(); /* Get current timezone now time and date are obtained.*/