pxa255 shared: Clock driver clean up and ISR Handler Prototype Correction.

This commit is contained in:
Joel Sherrill
2012-04-19 13:16:20 -05:00
parent bb9cf58d48
commit abb52ce597

View File

@@ -7,8 +7,6 @@
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at * found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE. * http://www.rtems.com/license/LICENSE.
*
* $Id$
*/ */
#include <rtems.h> #include <rtems.h>
@@ -71,7 +69,6 @@ static void clock_isr_off(const rtems_irq_connect_data *unused)
XSCALE_OS_TIMER_TSR = 0x1; XSCALE_OS_TIMER_TSR = 0x1;
/* disable timer interrupt*/ /* disable timer interrupt*/
XSCALE_OS_TIMER_IER &= ~0x1; 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) static int clock_isr_is_on(const rtems_irq_connect_data *irq)
{ {
/* check timer interrupt */ /* check timer interrupt */
return XSCALE_OS_TIMER_IER & 0x1; 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 = { rtems_irq_connect_data clock_isr_data = {
XSCALE_IRQ_OS_TIMER, .name = XSCALE_IRQ_OS_TIMER,
(rtems_irq_hdl)Clock_isr, .hdl = Clock_isr,
NULL, .handle = NULL,
clock_isr_on, .on = clock_isr_on,
clock_isr_off, .off = clock_isr_off,
clock_isr_is_on .isOn = clock_isr_is_on,
}; };
#define Clock_driver_support_install_isr( _new, _old ) \ #define Clock_driver_support_install_isr( _new, _old ) \
do { \ do { \
_old = NULL; \ _old = NULL; \
@@ -114,9 +109,6 @@ void Clock_driver_support_initialize_hardware(void)
#endif #endif
} }
#define CLOCK_VECTOR 0
#define Clock_driver_support_at_tick() \ #define Clock_driver_support_at_tick() \
do { \ do { \
/* read the status to clear the int */ \ /* read the status to clear the int */ \