Changeset 19612c1 in rtems


Ignore:
Timestamp:
10/12/14 20:37:33 (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
da71123
Parents:
cf6bc1e
git-author:
Joel Sherrill <joel.sherrill@…> (10/12/14 20:37:33)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:33)
Message:

libcpu/arm/pxa255/clock/clock.c: Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/pxa255/clock/clock.c

    rcf6bc1e r19612c1  
    11/*
    2  *  By Yang Xi <hiyangxi@gmail.com>
    32 *  PXA255 clock specific using the System Timer
    43 *
    54 *  RTEMS uses IRQ 26 as Clock Source
     5 */
     6
     7/*
     8 *  By Yang Xi <hiyangxi@gmail.com>
    69 *
    710 *  The license and distribution terms for this file may be
     
    2528
    2629static unsigned long period_num;
    27 
    28 /**
    29  *  Return the nanoseconds since last tick
    30  */
    31 uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
    32 {
    33   return 0;
    34 }
    35 
    36 #define Clock_driver_nanoseconds_since_last_tick \
    37   clock_driver_get_nanoseconds_since_last_tick
    3830
    3931/**
     
    9688
    9789#define Clock_driver_support_install_isr( _new, _old ) \
    98   do {                                                 \
    99     _old = NULL;                                       \
     90  do {                                                 \
     91    _old = NULL;                                       \
    10092    BSP_install_rtems_irq_handler(&clock_isr_data);    \
    10193  } while (0)
    10294
    103 void Clock_driver_support_initialize_hardware(void)
     95static void Clock_driver_support_initialize_hardware(void)
    10496{
     97  period_num = TIMER_RATE* rtems_configuration_get_microseconds_per_tick();
    10598#if ON_SKYEYE==1
    106   period_num = (TIMER_RATE* rtems_configuration_get_microseconds_per_tick())/100000;
     99  period_num /= 100000;
    107100#else
    108   period_num = (TIMER_RATE* rtems_configuration_get_microseconds_per_tick())/10000;
     101  period_num /= 10000;
    109102#endif
    110103}
     
    119112  } while (0)
    120113
    121 void Clock_driver_support_shutdown_hardware( void )
     114static void Clock_driver_support_shutdown_hardware( void )
    122115{
    123116  BSP_remove_rtems_irq_handler(&clock_isr_data);
Note: See TracChangeset for help on using the changeset viewer.