lm32/shared/milkymist_clock/ckinit.c: Fix warnings

This commit is contained in:
Joel Sherrill
2014-10-12 13:58:22 -05:00
parent 60778040e4
commit d6d213b5d8

View File

@@ -1,7 +1,8 @@
/* ckinit.c /*
*
* Clock device driver for Lattice Mico32 (lm32). * Clock device driver for Lattice Mico32 (lm32).
* */
/*
* 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.org/license/LICENSE. * http://www.rtems.org/license/LICENSE.
@@ -30,7 +31,7 @@
rtems_interrupt_catch(_new, MM_IRQ_TIMER0, &_old); \ rtems_interrupt_catch(_new, MM_IRQ_TIMER0, &_old); \
} while (0) } while (0)
void Clock_driver_support_initialize_hardware(void) static void Clock_driver_support_initialize_hardware(void)
{ {
MM_WRITE(MM_TIMER0_COMPARE, MM_WRITE(MM_TIMER0_COMPARE,
(MM_READ(MM_FREQUENCY)/(1000000/rtems_configuration_get_microseconds_per_tick()))); (MM_READ(MM_FREQUENCY)/(1000000/rtems_configuration_get_microseconds_per_tick())));
@@ -39,7 +40,7 @@ void Clock_driver_support_initialize_hardware(void)
bsp_interrupt_vector_enable(MM_IRQ_TIMER0); bsp_interrupt_vector_enable(MM_IRQ_TIMER0);
} }
void Clock_driver_support_shutdown_hardware(void) static void Clock_driver_support_shutdown_hardware(void)
{ {
bsp_interrupt_vector_disable(MM_IRQ_TIMER0); bsp_interrupt_vector_disable(MM_IRQ_TIMER0);
MM_WRITE(MM_TIMER0_CONTROL, 0); MM_WRITE(MM_TIMER0_CONTROL, 0);