forked from Imagelibrary/rtems
2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* tod.c: Remove warnings and clean up.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* tod.c: Remove warnings and clean up.
|
||||||
|
|
||||||
2009-04-28 Chris Johns <chrisj@rtems.org>
|
2009-04-28 Chris Johns <chrisj@rtems.org>
|
||||||
|
|
||||||
* bootcard.c, include/bootcard.h: Remove argc/argv/envp and
|
* bootcard.c, include/bootcard.h: Remove argc/argv/envp and
|
||||||
|
|||||||
@@ -167,7 +167,6 @@ void getRealTime(
|
|||||||
rtems_time_of_day *tod
|
rtems_time_of_day *tod
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!RTC_Present)
|
if (!RTC_Present)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -186,15 +185,10 @@ void getRealTime(
|
|||||||
*
|
*
|
||||||
* Return values: NONE
|
* Return values: NONE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* XXX this routine should be part of the public RTEMS interface */
|
|
||||||
extern bool _TOD_Validate( rtems_time_of_day *tod );
|
|
||||||
|
|
||||||
int setRealTime(
|
int setRealTime(
|
||||||
rtems_time_of_day *tod
|
rtems_time_of_day *tod
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!RTC_Present)
|
if (!RTC_Present)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
@@ -219,10 +213,6 @@ int setRealTime(
|
|||||||
* Return values:
|
* Return values:
|
||||||
* int The differance between the real time clock and rtems time.
|
* int The differance between the real time clock and rtems time.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* XXX this routine should be part of the public RTEMS interface */
|
|
||||||
uint32_t _TOD_To_seconds( rtems_time_of_day *tod );
|
|
||||||
|
|
||||||
int checkRealTime(void)
|
int checkRealTime(void)
|
||||||
{
|
{
|
||||||
rtems_time_of_day rtems_tod;
|
rtems_time_of_day rtems_tod;
|
||||||
|
|||||||
Reference in New Issue
Block a user