source: examples-v2/led/delay/init.c @ 7a59707

4.11examples-v2-4-10-branch
Last change on this file since 7a59707 was 7a59707, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 24, 2009 at 1:39:55 PM

2009-09-24 Joel Sherrill <joel.sherrill@…>

  • delay/init.c, ratemon1/init.c: Clean up configuration.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2007.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#include <stdio.h>
13#include <bsp.h>
14
15#include "../../testmacros.h"
16#include "../led.h"
17
18rtems_task Init(
19  rtems_task_argument argument
20)
21{
22  rtems_status_code status;
23
24  puts( "\n\n*** LED BLINKER -- task wake after ***" );
25
26  LED_INIT();
27
28  while (1) {
29
30    (void) rtems_task_wake_after( 1 * get_ticks_per_second() );
31    LED_ON();
32    (void) rtems_task_wake_after( 1 * get_ticks_per_second() );
33    LED_OFF();
34
35  }
36
37  status = rtems_task_delete( RTEMS_SELF );
38}
39
40/**************** START OF CONFIGURATION INFORMATION ****************/
41
42#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
43#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
44
45#define CONFIGURE_MAXIMUM_TASKS             1
46
47#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
48
49#define CONFIGURE_INIT
50#include <rtems/confdefs.h>
51
52/****************  END OF CONFIGURATION INFORMATION  ****************/
Note: See TracBrowser for help on using the repository browser.