summaryrefslogtreecommitdiff
path: root/led/timeout_event/init.c
diff options
context:
space:
mode:
authorGlenn Humphrey <glenn.humphrey@oarcorp.com>2009-10-12 21:02:40 +0000
committerGlenn Humphrey <glenn.humphrey@oarcorp.com>2009-10-12 21:02:40 +0000
commitb1d5a734778cef6046560a9cdee8ef8b789e6633 (patch)
tree76b0f605dfbbe9e474d15738d759ccce7fb4552c /led/timeout_event/init.c
parent778e80da0eda4526bd2977d9399800e010d4088c (diff)
2009-10-12 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* delay/init.c, event_server/init.c, msg_server/init.c, ratemon1/init.c, ratemon2/init.c, sem_server/init.c, timeout_event/init.c: Cleaned up unused variables and standardized for inclusion into RTEMS class materials.
Diffstat (limited to '')
-rw-r--r--led/timeout_event/init.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/led/timeout_event/init.c b/led/timeout_event/init.c
index 71cce63..ee9fc23 100644
--- a/led/timeout_event/init.c
+++ b/led/timeout_event/init.c
@@ -13,16 +13,8 @@
#include <stdint.h>
#include <stdio.h>
-#include "../../testmacros.h"
#include "../led.h"
-/*
- * Keep the names and IDs in global variables so another task can use them.
- */
-
-rtems_id Task_id[ 4 ]; /* array of task ids */
-rtems_name Task_name[ 4 ]; /* array of task names */
-
rtems_task Init(
rtems_task_argument argument
)
@@ -38,7 +30,7 @@ rtems_task Init(
while (1) {
status = rtems_event_receive( RTEMS_EVENT_1,
- RTEMS_DEFAULT_OPTIONS, get_ticks_per_second(), &events );
+ RTEMS_DEFAULT_OPTIONS, rtems_clock_get_ticks_per_second(), &events );
if ( status != RTEMS_TIMEOUT )
fputs( "receive did not timeout\n", stderr );
@@ -58,7 +50,7 @@ rtems_task Init(
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
-#define CONFIGURE_MAXIMUM_TASKS 4
+#define CONFIGURE_MAXIMUM_TASKS 1
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE