2 * FreeRTOS+FAT FS V1.0.0 (C) 2013 HCC Embedded
\r
4 * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
\r
7 * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
\r
8 * under a standard GPL open source license, or a commercial license. The
\r
9 * standard GPL license (unlike the modified GPL license under which FreeRTOS
\r
10 * itself is distributed) requires that all software statically linked with
\r
11 * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
\r
12 * Details of both license options follow:
\r
14 * - Open source licensing -
\r
15 * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
\r
16 * distributed without charge provided the user adheres to version two of the
\r
17 * GNU General Public License (GPL) and does not remove the copyright notice or
\r
18 * this text. The GPL V2 text is available on the gnu.org web site, and on the
\r
19 * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
\r
21 * - Commercial licensing -
\r
22 * Businesses and individuals who for commercial or other reasons cannot comply
\r
23 * with the terms of the GPL V2 license must obtain a commercial license before
\r
24 * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
\r
25 * any form. Commercial licenses can be purchased from
\r
26 * http://shop.freertos.org/fat_sl and do not require any source files to be
\r
29 * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
\r
30 * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
\r
31 * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
\r
32 * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
\r
33 * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
\r
34 * conditions and terms, be they implied, expressed, or statutory.
\r
36 * http://www.FreeRTOS.org
\r
37 * http://www.FreeRTOS.org/FreeRTOS-Plus
\r
43 #include "../../include/psp_rtc.h"
\r
45 #include "../../../version/ver_psp_rtc.h"
\r
46 #if VER_PSP_RTC_MAJOR != 1
\r
47 #error "VER_PSP_RTC_MAJOR invalid"
\r
49 #if VER_PSP_RTC_MINOR != 0
\r
50 #error "VER_PSP_RTC_MINOR invalid"
\r
54 /****************************************************************************
\r
56 * psp_getcurrenttimedate
\r
58 * Need to be ported depending on system, it retreives the
\r
59 * current time and date.
\r
60 * Please take care of correct roll-over handling.
\r
61 * Roll-over problem is to read a date at 23.59.59 and then reading time at
\r
66 * p_timedate - pointer where to store time and date
\r
68 ***************************************************************************/
\r
69 void psp_getcurrenttimedate ( t_psp_timedate * p_timedate )
\r
71 if ( p_timedate != NULL )
\r
73 p_timedate->sec = 0;
\r
74 p_timedate->min = 0;
\r
75 p_timedate->hour = 12u;
\r
77 p_timedate->day = 1u;
\r
78 p_timedate->month = 1u;
\r
79 p_timedate->year = 1980u;
\r
81 } /* psp_getcurrenttimedate */
\r