summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/arm
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-18 15:37:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-18 15:37:52 +0000
commit7ca51e389d42e77b3c4f6d4522b66730296a420c (patch)
tree6d942a548bac3b7e1c42d6bbeebd31b9673fd99f /c/src/lib/libcpu/arm
parent2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-7ca51e389d42e77b3c4f6d4522b66730296a420c.tar.bz2
2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* s3c2400/clock/clockdrv.c, s3c24xx/clock/clockdrv.c: Add stubs for nanoseconds since tick handler.
Diffstat (limited to 'c/src/lib/libcpu/arm')
-rw-r--r--c/src/lib/libcpu/arm/ChangeLog5
-rw-r--r--c/src/lib/libcpu/arm/s3c2400/clock/clockdrv.c20
-rw-r--r--c/src/lib/libcpu/arm/s3c24xx/clock/clockdrv.c12
3 files changed, 31 insertions, 6 deletions
diff --git a/c/src/lib/libcpu/arm/ChangeLog b/c/src/lib/libcpu/arm/ChangeLog
index e62fa6d328..cacaa098f6 100644
--- a/c/src/lib/libcpu/arm/ChangeLog
+++ b/c/src/lib/libcpu/arm/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * s3c2400/clock/clockdrv.c, s3c24xx/clock/clockdrv.c: Add stubs for
+ nanoseconds since tick handler.
+
2009-08-06 Xi Yang <hiyangxi@gmail.com>
* pxa255/clock/clock.c: Adjust clock for Skyeye. Joel added empty
diff --git a/c/src/lib/libcpu/arm/s3c2400/clock/clockdrv.c b/c/src/lib/libcpu/arm/s3c2400/clock/clockdrv.c
index 959137fc01..8de0864d73 100644
--- a/c/src/lib/libcpu/arm/s3c2400/clock/clockdrv.c
+++ b/c/src/lib/libcpu/arm/s3c2400/clock/clockdrv.c
@@ -32,12 +32,22 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
3, /* unused for ARM cpus */
0 }; /* unused for ARM cpus */
-/* If you follow the code, this is never used, so any value
+/* If you follow the code, this is never used, so any value
* should work
*/
#define CLOCK_VECTOR 0
-
+/**
+ * Return the nanoseconds since last tick
+ */
+uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
+{
+ return 0;
+}
+
+#define Clock_driver_nanoseconds_since_last_tick \
+ clock_driver_get_nanoseconds_since_last_tick
+
/**
* When we get the clock interrupt
* - clear the interrupt bit?
@@ -65,9 +75,9 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
* - enable it
* - clear any pending interrupts
*
- * Since you may want the clock always running, you can
+ * Since you may want the clock always running, you can
* enable interrupts here. If you do so, the clock_isr_on(),
- * clock_isr_off(), and clock_isr_is_on() functions can be
+ * clock_isr_off(), and clock_isr_is_on() functions can be
* NOPs.
*/
#define Clock_driver_support_initialize_hardware() \
@@ -90,7 +100,7 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
} while (0)
/**
- * Do whatever you need to shut the clock down and remove the
+ * Do whatever you need to shut the clock down and remove the
* interrupt handler. Since this normally only gets called on
* RTEMS shutdown, you may not need to do anything other than
* remove the ISR.
diff --git a/c/src/lib/libcpu/arm/s3c24xx/clock/clockdrv.c b/c/src/lib/libcpu/arm/s3c24xx/clock/clockdrv.c
index 28da59f8b5..04edef54cf 100644
--- a/c/src/lib/libcpu/arm/s3c24xx/clock/clockdrv.c
+++ b/c/src/lib/libcpu/arm/s3c24xx/clock/clockdrv.c
@@ -37,6 +37,16 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
*/
#define CLOCK_VECTOR 0
+/**
+ * Return the nanoseconds since last tick
+ */
+uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
+{
+ return 0;
+}
+
+#define Clock_driver_nanoseconds_since_last_tick \
+ clock_driver_get_nanoseconds_since_last_tick
/**
* When we get the clock interrupt
@@ -73,7 +83,7 @@ rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
#define Clock_driver_support_initialize_hardware() \
do { \
uint32_t cr; \
- uint32_t freq,m,p,s; \
+ uint32_t freq; \
/* set MUX for Timer4 to 1/16 */ \
cr=rTCFG1 & 0xFFF0FFFF; \
rTCFG1=(cr | (3<<16)); \