From 78a38fa2ae36b68b1adf461354721188f9a6e8a2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 8 Oct 2014 17:38:12 -0500 Subject: Eliminate use of /*PAGE and clean up formatting --- c/src/lib/libbsp/shared/tod.c | 60 +++++++------------------------------------ 1 file changed, 9 insertions(+), 51 deletions(-) (limited to 'c/src/lib/libbsp/shared/tod.c') diff --git a/c/src/lib/libbsp/shared/tod.c b/c/src/lib/libbsp/shared/tod.c index 64007d6397..2a69bc95b1 100644 --- a/c/src/lib/libbsp/shared/tod.c +++ b/c/src/lib/libbsp/shared/tod.c @@ -1,6 +1,8 @@ /* * Real Time Clock Driver Wrapper for Libchip - * + */ + +/* * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.org/license/LICENSE. @@ -16,7 +18,6 @@ /* * Configuration Information */ - extern size_t RTC_Count; extern rtems_device_minor_number RTC_Minor; @@ -29,7 +30,6 @@ extern void setRealTimeToRTEMS(void); * * Initialize the RTC driver */ - rtems_device_driver rtc_initialize( rtems_device_major_number major, rtems_device_minor_number minor_arg, @@ -66,7 +66,6 @@ rtems_device_driver rtc_initialize( /* * Register and initialize the primary RTC's */ - status = rtems_io_register_name( RTC_DEVICE_NAME, major, RTC_Minor ); if (status != RTEMS_SUCCESSFUL) { rtems_fatal_error_occurred(status); @@ -77,7 +76,6 @@ rtems_device_driver rtc_initialize( /* * Now initialize any secondary RTC's */ - for ( minor++ ; minordeviceInitialize(minor); } @@ -201,17 +198,9 @@ rtems_device_driver rtc_control( return RTEMS_NOT_IMPLEMENTED; } -/*PAGE - * +/* * This routine copies the time from the real time clock to RTEMS - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * Return values: NONE */ - void setRealTimeToRTEMS() { rtems_time_of_day rtc_tod; @@ -223,19 +212,11 @@ void setRealTimeToRTEMS() rtems_clock_set( &rtc_tod ); } -/*PAGE - * +/* * setRealTimeFromRTEMS * * This routine copies the time from RTEMS to the real time clock - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * Return values: NONE */ - void setRealTimeFromRTEMS(void) { rtems_time_of_day rtems_tod; @@ -247,19 +228,11 @@ void setRealTimeFromRTEMS(void) RTC_Table[RTC_Minor].pDeviceFns->deviceSetTime(RTC_Minor, &rtems_tod); } -/*PAGE - * +/* * getRealTime * * This routine reads the current time from the RTC. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * Return values: NONE */ - void getRealTime( rtems_time_of_day *tod ) @@ -270,17 +243,10 @@ void getRealTime( RTC_Table[RTC_Minor].pDeviceFns->deviceGetTime(RTC_Minor, tod); } -/*PAGE - * +/* * setRealTime * * This routine sets the RTC. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * Return values: NONE */ int setRealTime( const rtems_time_of_day *tod @@ -296,19 +262,11 @@ int setRealTime( return 0; } -/*PAGE - * +/* * checkRealTime * * This routine reads the returns the variance betweent the real time and - * rtems time. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * Return values: - * int The differance between the real time clock and rtems time. + * RTEMS time. */ int checkRealTime(void) { -- cgit v1.2.3