Changeset 90505853 in rtems


Ignore:
Timestamp:
Nov 23, 2009, 8:07:55 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
f186044
Parents:
ef85611
Message:

2009-11-23 Joel Sherrill <joel.sherrill@…>

  • clock/clockdrv.c: Split hardware initialization code into Clock_driver_support_initialize_hardware().
Location:
c/src/lib/libbsp/mips/jmr3904
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/jmr3904/ChangeLog

    ref85611 r90505853  
     12009-11-23      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * clock/clockdrv.c: Split hardware initialization code into
     4        Clock_driver_support_initialize_hardware().
     5
    162009-11-16      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/mips/jmr3904/clock/clockdrv.c

    ref85611 r90505853  
    22 *  Instantiate the clock driver shell.
    33 *
    4  *  The tx3904 simulator in gdb counts instructions.
     4 *  The TX3904 simulator in gdb counts instructions.
    55 *
    6  *  COPYRIGHT (c) 1989-2006.
     6 *  COPYRIGHT (c) 1989-2009.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    2222#define CLOCK_VECTOR TX3904_IRQ_TMR0
    2323
    24 #define Clock_driver_support_at_tick()
    25 
    2624/*
    2725 *  5000 clicks per tick ISR is HIGHLY arbitrary
     
    3129#define Clock_driver_support_install_isr( _new, _old ) \
    3230  do { \
     31    _old = set_vector( _new, CLOCK_VECTOR, 1 ); \
     32  } while(0)
     33
     34#define Clock_driver_support_initialize_hardware() \
     35  do { \
    3336    uint32_t   _clicks = CLICKS; \
    34     _old = set_vector( _new, CLOCK_VECTOR, 1 ); \
    3537    TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_CCDR, 0x3 ); \
    3638    TX3904_TIMER_WRITE( TX3904_TIMER0_BASE, TX3904_TIMER_CPRA, _clicks ); \
     
    4143  } while(0)
    4244
    43 #define Clock_driver_support_initialize_hardware()
     45#define Clock_driver_support_at_tick()
    4446
    4547#define Clock_driver_support_shutdown_hardware()
Note: See TracChangeset for help on using the changeset viewer.