diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-04-19 13:16:20 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-04-19 13:16:20 -0500 |
commit | abb52ce597b68ec441794e0b1ac0ad96c53c6bc3 (patch) | |
tree | 0b062022fb6ce63193753bbde42de340d48d7290 /c/src/lib/libcpu | |
parent | mc9328mxl shared: Clock driver clean up and ISR Handler Prototype Correction. (diff) | |
download | rtems-abb52ce597b68ec441794e0b1ac0ad96c53c6bc3.tar.bz2 |
pxa255 shared: Clock driver clean up and ISR Handler Prototype Correction.
Diffstat (limited to 'c/src/lib/libcpu')
-rwxr-xr-x | c/src/lib/libcpu/arm/pxa255/clock/clock.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/c/src/lib/libcpu/arm/pxa255/clock/clock.c b/c/src/lib/libcpu/arm/pxa255/clock/clock.c index dadccd7d2e..0bb2b0822f 100755 --- a/c/src/lib/libcpu/arm/pxa255/clock/clock.c +++ b/c/src/lib/libcpu/arm/pxa255/clock/clock.c @@ -7,8 +7,6 @@ * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. - * - * $Id$ */ #include <rtems.h> @@ -71,7 +69,6 @@ static void clock_isr_off(const rtems_irq_connect_data *unused) XSCALE_OS_TIMER_TSR = 0x1; /* disable timer interrupt*/ XSCALE_OS_TIMER_IER &= ~0x1; - return; } /** @@ -82,23 +79,21 @@ static void clock_isr_off(const rtems_irq_connect_data *unused) */ static int clock_isr_is_on(const rtems_irq_connect_data *irq) { - /* check timer interrupt */ + /* check timer interrupt */ return XSCALE_OS_TIMER_IER & 0x1; } -rtems_isr Clock_isr(rtems_vector_number vector); +void Clock_isr(rtems_irq_hdl_param arg); -/* Replace the first value with the clock's interrupt name. */ rtems_irq_connect_data clock_isr_data = { - XSCALE_IRQ_OS_TIMER, - (rtems_irq_hdl)Clock_isr, - NULL, - clock_isr_on, - clock_isr_off, - clock_isr_is_on + .name = XSCALE_IRQ_OS_TIMER, + .hdl = Clock_isr, + .handle = NULL, + .on = clock_isr_on, + .off = clock_isr_off, + .isOn = clock_isr_is_on, }; - #define Clock_driver_support_install_isr( _new, _old ) \ do { \ _old = NULL; \ @@ -114,9 +109,6 @@ void Clock_driver_support_initialize_hardware(void) #endif } - -#define CLOCK_VECTOR 0 - #define Clock_driver_support_at_tick() \ do { \ /* read the status to clear the int */ \ |