nds - Clock driver compiles again

This commit is contained in:
Joel Sherrill
2012-05-10 07:26:07 -05:00
parent 4523829abf
commit 42547e07cb

View File

@@ -1,14 +1,15 @@
/*
* RTEMS for Nintendo DS clock driver.
/**
* @file
*
* RTEMS for Nintendo DS clock driver.
*/
/*
* Copyright (c) 2008 by Matthieu Bucchianeri <mbucchia@gmail.com>
*
* 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>
@@ -21,6 +22,12 @@
*/
void Clock_isr(rtems_irq_hdl_param arg);
/*
* forward declarations for methods in this file
*/
void Clock_driver_support_shutdown_hardware (void);
void Clock_driver_support_initialize_hardware (void);
/*
* isr registration variables.
*/
@@ -28,9 +35,9 @@ static rtems_irq_connect_data clock_isr_data = {
.name = IRQ_TIMER0,
.hdl = Clock_isr,
.handle = NULL,
.on = clock_isr_on,
.off = clock_isr_off,
.isOn = clock_isr_is_on,
.on = NULL,
.off = NULL,
.isOn = NULL,
};
void update_touchscreen (void);
@@ -54,8 +61,7 @@ void update_touchscreen (void);
/*
* disable clock.
*/
void
Clock_driver_support_shutdown_hardware (void)
void Clock_driver_support_shutdown_hardware (void)
{
BSP_remove_rtems_irq_handler (&clock_isr_data);
TIMER_CR (0) &= ~(TIMER_ENABLE);
@@ -64,8 +70,7 @@ Clock_driver_support_shutdown_hardware (void)
/*
* initialize clock on timer 0.
*/
void
Clock_driver_support_initialize_hardware (void)
void Clock_driver_support_initialize_hardware (void)
{
uint32_t freq =
1000 / (rtems_configuration_get_microseconds_per_tick () / 1000);