summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-12 15:37:32 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-13 10:33:32 -0500
commitcf6bc1ea6b0c861c0301837c1eec6fcf67a9748d (patch)
treebbb130cc1bd929e1a4e12b928e57a6fce0a2ecd7
parentlibcpu/arm/lpc22xx/clock/clockdrv.c: Fix warnings (diff)
downloadrtems-cf6bc1ea6b0c861c0301837c1eec6fcf67a9748d.tar.bz2
libcpu/arm/mc9328mxl/clock/clockdrv.c: Fix warnings
-rw-r--r--c/src/lib/libcpu/arm/mc9328mxl/clock/clockdrv.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/c/src/lib/libcpu/arm/mc9328mxl/clock/clockdrv.c b/c/src/lib/libcpu/arm/mc9328mxl/clock/clockdrv.c
index d814d38e4e..0c3ab5dd93 100644
--- a/c/src/lib/libcpu/arm/mc9328mxl/clock/clockdrv.c
+++ b/c/src/lib/libcpu/arm/mc9328mxl/clock/clockdrv.c
@@ -1,9 +1,8 @@
/*
* MC9328MXL clock specific using the System Timer
- *
- * This is hardware specific part of the clock driver. At the end of this
- * file, the generic part of the driver is #included.
- *
+ */
+
+/*
* Copyright (c) 2004 by Cogent Computer Systems
* Written by Jay Monkman <jtm@lopingdog.com>
*
@@ -39,11 +38,13 @@ rtems_irq_connect_data clock_isr_data = {
* - clear the interrupt bit?
* - restart the timer?
*/
-#define Clock_driver_support_at_tick() \
- do { \
- uint32_t reg; \
- reg = MC9328MXL_TMR1_TSTAT; \
- MC9328MXL_TMR1_TSTAT = 0; \
+#define Clock_driver_support_at_tick() \
+ do { \
+ uint32_t reg; \
+ \
+ reg = MC9328MXL_TMR1_TSTAT; \
+ (void) reg; /* avoid set but not used warning */ \
+ MC9328MXL_TMR1_TSTAT = 0; \
} while(0)
/**
@@ -55,7 +56,6 @@ rtems_irq_connect_data clock_isr_data = {
BSP_install_rtems_irq_handler(&clock_isr_data); \
} while(0)
-
/**
* Initialize the hardware for the clock
* - Set the frequency