summaryrefslogtreecommitdiffstats
path: root/led/timeout_event
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-08-29 13:17:40 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-08-29 13:17:40 -0500
commit61d2a1f2e8ddb992f98e80cd503879226730eeec (patch)
tree1c3c0eed1272a3a0e875e77db3148b2593ed93b2 /led/timeout_event
parentUser friendly error message if the rtems_waf module is not included. (diff)
downloadrtems-examples-61d2a1f2e8ddb992f98e80cd503879226730eeec.tar.bz2
Miscellaneous clean up and warning removal
Diffstat (limited to 'led/timeout_event')
-rw-r--r--led/timeout_event/init.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/led/timeout_event/init.c b/led/timeout_event/init.c
index b7c35f7..b9e2c77 100644
--- a/led/timeout_event/init.c
+++ b/led/timeout_event/init.c
@@ -27,8 +27,12 @@ rtems_task Init(
for (count=0; ; count++) {
- status = rtems_event_receive( RTEMS_EVENT_1,
- RTEMS_DEFAULT_OPTIONS, rtems_clock_get_ticks_per_second(), &events );
+ status = rtems_event_receive(
+ RTEMS_EVENT_1,
+ RTEMS_DEFAULT_OPTIONS,
+ rtems_clock_get_ticks_per_second(),
+ &events
+ );
if ( status != RTEMS_TIMEOUT )
fputs( "receive did not timeout\n", stderr );
@@ -39,12 +43,11 @@ rtems_task Init(
}
- status = rtems_task_delete( RTEMS_SELF );
+ (void) rtems_task_delete( RTEMS_SELF );
}
/**************** START OF CONFIGURATION INFORMATION ****************/
-#define CONFIGURE_INIT
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
@@ -52,8 +55,7 @@ rtems_task Init(
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-#define CONFIGURE_EXTRA_TASK_STACKS (3 * RTEMS_MINIMUM_STACK_SIZE)
-
+#define CONFIGURE_INIT
#include <rtems/confdefs.h>
/**************** END OF CONFIGURATION INFORMATION ****************/