Changeset 076bc8b in rtems


Ignore:
Timestamp:
Aug 6, 2009, 10:24:13 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
8eb28306
Parents:
9ef365f
Message:

2009-08-06 Xi Yang <hiyangxi@…>

  • pxa255/clock/clock.c: Adjust clock for Skyeye. Joel added empty nanoseconds since last tick handler.
Location:
c/src/lib/libcpu/arm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/ChangeLog

    r9ef365f r076bc8b  
     12009-08-06      Xi Yang <hiyangxi@gmail.com>
     2
     3        * pxa255/clock/clock.c: Adjust clock for Skyeye. Joel added empty
     4        nanoseconds since last tick handler.
     5
    162009-08-04      Xi Yang <hiyangxi@gmail.com>
    27
  • c/src/lib/libcpu/arm/pxa255/clock/clock.c

    r9ef365f r076bc8b  
    2929
    3030/**
     31 *  Return the nanoseconds since last tick
     32 */
     33uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
     34{
     35  return 0;
     36}
     37
     38#define Clock_driver_nanoseconds_since_last_tick \
     39  clock_driver_get_nanoseconds_since_last_tick
     40
     41/**
    3142 * Enables clock interrupt.
    3243 *
     
    4152  XSCALE_OS_TIMER_IER |= 0x1;
    4253
     54#if ON_SKYEYE==1
     55  period_num = (TIMER_RATE* Configuration.microseconds_per_tick)/100000;
     56#else
    4357  period_num = (TIMER_RATE* Configuration.microseconds_per_tick)/10000;
     58#endif
    4459
    4560  XSCALE_OS_TIMER_MR0 = XSCALE_OS_TIMER_TCR + period_num;
     
    91106void Clock_driver_support_initialize_hardware(void)
    92107{
     108#if ON_SKYEYE==1
     109  period_num = (TIMER_RATE* Configuration.microseconds_per_tick)/100000;
     110#else
    93111  period_num = (TIMER_RATE* Configuration.microseconds_per_tick)/10000;
     112#endif
    94113}
    95114
Note: See TracChangeset for help on using the changeset viewer.