summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/timer.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-21 23:19:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-21 23:19:36 +0000
commit6f1384cd4ff2518fbbde7fe99f4cbc7112ec14fc (patch)
tree75216d7fabbbe051420f24832c803ac74418ee7d /cpukit/rtems/include/rtems/rtems/timer.h
parent2007-05-21 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-6f1384cd4ff2518fbbde7fe99f4cbc7112ec14fc.tar.bz2
Split Classic API data instantiation into individual files. This reduces the size of the BSS section when an optional manageer stub is used. Some tests showed about a 600 byte reduction in BSS size. Also eliminated the variables _RTEMS_tasks_User_initialization_tasks and _RTEMS_tasks_Number_of_initialization_tasks because they were only used in one place after initialized. It was a waste of space.
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/include/rtems/rtems/timer.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/timer.h b/cpukit/rtems/include/rtems/rtems/timer.h
index a246678480..fdb9185d00 100644
--- a/cpukit/rtems/include/rtems/rtems/timer.h
+++ b/cpukit/rtems/include/rtems/rtems/timer.h
@@ -23,7 +23,7 @@
* + reset a timer
* + cancel a time
*
- * COPYRIGHT (c) 1989-2002.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -36,12 +36,17 @@
#ifndef _RTEMS_RTEMS_TIMER_H
#define _RTEMS_RTEMS_TIMER_H
+#ifndef RTEMS_TIMER_EXTERN
+#define RTEMS_TIMER_EXTERN extern
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
#include <rtems/score/object.h>
#include <rtems/score/watchdog.h>
+#include <rtems/score/thread.h>
#include <rtems/rtems/clock.h>
#include <rtems/rtems/attr.h>
@@ -74,7 +79,7 @@ typedef rtems_timer_service_routine ( *rtems_timer_service_routine_entry )(
* this class of objects.
*/
-RTEMS_EXTERN Objects_Information _Timer_Information;
+RTEMS_TIMER_EXTERN Objects_Information _Timer_Information;
/*
* Pointer to TCB of the Timer Server. This is NULL before the
@@ -82,7 +87,7 @@ RTEMS_EXTERN Objects_Information _Timer_Information;
* initiated until the server is started.
*/
-RTEMS_EXTERN Thread_Control *_Timer_Server;
+RTEMS_TIMER_EXTERN Thread_Control *_Timer_Server;
/*
* The following chains contain the list of interval timers that are