FreeCalypso > hg > fc-magnetite
comparison src/ui3/mfw/mfw_td.c @ 436:68c2f59a988a
src/ui3/mfw/mfw_td.c: back to classic TCS211 RTC API
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 22 Jan 2018 00:53:56 +0000 |
parents | e8ddbb0837ed |
children |
comparison
equal
deleted
inserted
replaced
435:b66631a0b632 | 436:68c2f59a988a |
---|---|
143 Description: Removal of clone code: entity GDI | 143 Description: Removal of clone code: entity GDI |
144 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). | 144 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). |
145 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be | 145 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be |
146 consistent with the new interface. | 146 consistent with the new interface. |
147 */ | 147 */ |
148 #ifndef NEPTUNE_BOARD | 148 #if 0 |
149 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); | 149 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); |
150 #else | 150 #else |
151 rtc_get_time_date(¤t_date, ¤t_time); | 151 rtc_get_time_date(¤t_date, ¤t_time); |
152 #endif | 152 #endif |
153 } | 153 } |
158 Description: Removal of clone code: entity GDI | 158 Description: Removal of clone code: entity GDI |
159 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). | 159 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). |
160 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be | 160 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be |
161 consistent with the new interface. | 161 consistent with the new interface. |
162 */ | 162 */ |
163 #ifndef NEPTUNE_BOARD | 163 #if 0 |
164 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); | 164 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); |
165 #else | 165 #else |
166 rtc_get_time_date(¤t_date, ¤t_time); | 166 rtc_get_time_date(¤t_date, ¤t_time); |
167 #endif | 167 #endif |
168 /*use a default time/date*/ | 168 /*use a default time/date*/ |
314 Description: Removal of clone code: entity GDI | 314 Description: Removal of clone code: entity GDI |
315 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). | 315 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). |
316 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be | 316 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be |
317 consistent with the new interface. | 317 consistent with the new interface. |
318 */ | 318 */ |
319 #ifndef NEPTUNE_BOARD | 319 #if 0 |
320 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); | 320 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); |
321 #else | 321 #else |
322 rtc_get_time_date(¤t_date, ¤t_time); | 322 rtc_get_time_date(¤t_date, ¤t_time); |
323 #endif | 323 #endif |
324 | 324 |
376 Description: Removal of clone code: entity GDI | 376 Description: Removal of clone code: entity GDI |
377 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). | 377 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). |
378 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be | 378 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be |
379 consistent with the new interface. | 379 consistent with the new interface. |
380 */ | 380 */ |
381 #ifndef NEPTUNE_BOARD | 381 #if 0 |
382 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); | 382 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); |
383 #else | 383 #else |
384 rtc_get_time_date(¤t_date, ¤t_time); | 384 rtc_get_time_date(¤t_date, ¤t_time); |
385 #endif | 385 #endif |
386 #endif | 386 #endif |
405 Description: Removal of clone code: entity GDI | 405 Description: Removal of clone code: entity GDI |
406 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). | 406 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). |
407 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be | 407 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be |
408 consistent with the new interface. | 408 consistent with the new interface. |
409 */ | 409 */ |
410 #ifndef NEPTUNE_BOARD | 410 #if 0 |
411 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); | 411 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); |
412 #else | 412 #else |
413 rtc_get_time_date(¤t_date, ¤t_time); | 413 rtc_get_time_date(¤t_date, ¤t_time); |
414 #endif | 414 #endif |
415 #endif | 415 #endif |
931 Description: Removal of clone code: entity GDI | 931 Description: Removal of clone code: entity GDI |
932 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). | 932 Solution: Two similar functions(rtc_get_time_date() and rtc_get_alarm()) are made into one function rtc_get_time_date(). |
933 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be | 933 As a result, interface for rtc_get_time_date() has been changed. Change has been done here to be |
934 consistent with the new interface. | 934 consistent with the new interface. |
935 */ | 935 */ |
936 #ifndef NEPTUNE_BOARD | 936 #if 0 |
937 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); | 937 rtc_get_time_date(¤t_date, ¤t_time,RTC_TIME_TYPE_CURRENT); |
938 #else | 938 #else |
939 rtc_get_time_date(¤t_date, ¤t_time); | 939 rtc_get_time_date(¤t_date, ¤t_time); |
940 #endif | 940 #endif |
941 | 941 |