Changeset e827199 in rtems


Ignore:
Timestamp:
Oct 12, 2014, 8:38:01 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
5b6438a
Parents:
9fab016
git-author:
Joel Sherrill <joel.sherrill@…> (10/12/14 20:38:01)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:34)
Message:

libcpu/bfin/clock: Fix warnings

Location:
c/src/lib/libcpu/bfin/clock
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/bfin/clock/clock.c

    r9fab016 re827199  
    11/*  RTEMS Clock Tick Driver for Blackfin.  Uses Blackfin Core Timer.
    2  *
     2 */
     3
     4/*
    35 *  Copyright (c) 2008 Kallisti Labs, Los Gatos, CA, USA
    46 *             written by Allan Hessenflow <allanh@kallisti.com>
     
    2628void Clock_exit(void);
    2729
    28 /*
    29  *  Major and minor number.
    30  */
    31 
    32 rtems_device_major_number rtems_clock_major = ~0;
    33 rtems_device_minor_number rtems_clock_minor;
    34 
    3530static rtems_isr clockISR(rtems_vector_number vector) {
    3631
     
    5045}
    5146
    52 
    5347/*
    5448 *  Clock_exit
     
    5650 *  This routine allows the clock driver to exit by masking the interrupt and
    5751 *  disabling the clock's counter.
    58  *
    59  *  Input parameters:   NONE
    60  *
    61  *  Output parameters:  NONE
    62  *
    63  *  Return values:      NONE
    64  *
    6552 */
    66 
    67 void Clock_exit(void) {
    68 
     53void Clock_exit(void)
     54{
    6955  *(uint32_t volatile *) TCNTL = 0;
    7056}
     
    7460 *
    7561 *  This routine initializes the clock driver.
    76  *
    77  *  Input parameters:
    78  *    major - clock device major number
    79  *    minor - clock device minor number
    80  *    parg  - pointer to optional device driver arguments
    81  *
    82  *  Output parameters:  NONE
    83  *
    84  *  Return values:
    85  *    rtems_device_driver status code
    8662 */
    87 
    88 rtems_device_driver Clock_initialize(rtems_device_major_number major,
    89                                      rtems_device_minor_number minor,
    90                                      void *pargp) {
    91 
     63rtems_device_driver Clock_initialize(
     64  rtems_device_major_number major,
     65  rtems_device_minor_number minor,
     66  void *pargp
     67)
     68{
    9269  Clock_driver_ticks = 0;
    9370
     
    10178
    10279  atexit(Clock_exit);
    103   /*
    104    * make major/minor avail to others such as shared memory driver
    105    */
    106 
    107   rtems_clock_major = major;
    108   rtems_clock_minor = minor;
    10980
    11081  return RTEMS_SUCCESSFUL;
  • c/src/lib/libcpu/bfin/clock/rtc.c

    r9fab016 re827199  
    11/*  Real Time Clock Driver for Blackfin
    2  *
     2 */
     3
     4/*
    35 *  Copyright (c) 2006 by Atos Automacao Industrial Ltda.
    46 *             written by Alain Schaefer <alain.schaefer@easc.ch>
     
    3133void Init_RTC(void)
    3234{
    33   *((uint16_t*)RTC_PREN)    = RTC_PREN_PREN; /* Enable Prescaler */
     35  *((uint16_t*)RTC_PREN) = RTC_PREN_PREN; /* Enable Prescaler */
    3436}
    3537
     
    3739 *  Read time from RTEMS' clock manager and set it to RTC
    3840 */
    39 
    4041void setRealTimeFromRTEMS (void)
    4142{
     
    5253 *  Read real time from RTC and set it to RTEMS' clock manager
    5354 */
    54 
    5555void setRealTimeToRTEMS (void)
    5656{
     
    6161}
    6262
    63  /*
    64   * Set the RTC time
    65   */
     63/*
     64 * Set the RTC time
     65 */
    6666int setRealTime(
    6767  const rtems_time_of_day *tod
     
    8888}
    8989
    90  /*
    91   *  Get the time from the RTC.
    92   */
    93 
     90/*
     91 *  Get the time from the RTC.
     92 */
    9493void getRealTime(
    9594  rtems_time_of_day *tod
     
    135134 *  If the difference is greater than 1 day, this returns 9999.
    136135 */
    137 
    138136int checkRealTime (void)
    139137{
Note: See TracChangeset for help on using the changeset viewer.