Changeset 7ca51e3 in rtems for c/src/lib


Ignore:
Timestamp:
Aug 18, 2009, 3:37:52 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
0979426
Parents:
63b3dff5
Message:

2009-08-18 Joel Sherrill <joel.sherrill@…>

  • s3c2400/clock/clockdrv.c, s3c24xx/clock/clockdrv.c: Add stubs for nanoseconds since tick handler.
Location:
c/src/lib/libcpu/arm
Files:
3 edited

Legend:

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

    r63b3dff5 r7ca51e3  
     12009-08-18      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * s3c2400/clock/clockdrv.c, s3c24xx/clock/clockdrv.c: Add stubs for
     4        nanoseconds since tick handler.
     5
    162009-08-06      Xi Yang <hiyangxi@gmail.com>
    27
  • c/src/lib/libcpu/arm/s3c2400/clock/clockdrv.c

    r63b3dff5 r7ca51e3  
    3333                                         0 };   /* unused for ARM cpus */
    3434
    35 /* If you follow the code, this is never used, so any value 
     35/* If you follow the code, this is never used, so any value
    3636 * should work
    3737 */
    3838#define CLOCK_VECTOR 0
    3939
    40    
     40/**
     41 *  Return the nanoseconds since last tick
     42 */
     43uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
     44{
     45  return 0;
     46}
     47
     48#define Clock_driver_nanoseconds_since_last_tick \
     49  clock_driver_get_nanoseconds_since_last_tick
     50
    4151/**
    4252 * When we get the clock interrupt
     
    6676 *   - clear any pending interrupts
    6777 *
    68  * Since you may want the clock always running, you can 
     78 * Since you may want the clock always running, you can
    6979 * enable interrupts here. If you do so, the clock_isr_on(),
    70  * clock_isr_off(), and clock_isr_is_on() functions can be 
     80 * clock_isr_off(), and clock_isr_is_on() functions can be
    7181 * NOPs.
    7282 */
     
    91101
    92102/**
    93  * Do whatever you need to shut the clock down and remove the 
     103 * Do whatever you need to shut the clock down and remove the
    94104 * interrupt handler. Since this normally only gets called on
    95105 * RTEMS shutdown, you may not need to do anything other than
  • c/src/lib/libcpu/arm/s3c24xx/clock/clockdrv.c

    r63b3dff5 r7ca51e3  
    3838#define CLOCK_VECTOR 0
    3939
     40/**
     41 *  Return the nanoseconds since last tick
     42 */
     43uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
     44{
     45  return 0;
     46}
     47
     48#define Clock_driver_nanoseconds_since_last_tick \
     49  clock_driver_get_nanoseconds_since_last_tick
    4050
    4151/**
     
    7484  do { \
    7585        uint32_t cr; \
    76         uint32_t freq,m,p,s; \
     86        uint32_t freq; \
    7787        /* set MUX for Timer4 to 1/16 */ \
    7888        cr=rTCFG1 & 0xFFF0FFFF; \
Note: See TracChangeset for help on using the changeset viewer.