source: rtems/testsuites/samples/hello/init.c @ 3a9d9e1

4.115
Last change on this file since 3a9d9e1 was e313551, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/22/11 at 10:58:44

Add HAVE_CONFIG_H.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*  Init
2 *
3 *  This routine is the initialization task for this test program.
4 *  It is called from init_exec and has the responsibility for creating
5 *  and starting the tasks that make up the test.  If the time of day
6 *  clock is required for the test, it should also be set to a known
7 *  value by this function.
8 *
9 *  Input parameters:  NONE
10 *
11 *  Output parameters:  NONE
12 *
13 *  COPYRIGHT (c) 1989-1999.
14 *  On-Line Applications Research Corporation (OAR).
15 *
16 *  The license and distribution terms for this file may be
17 *  found in the file LICENSE in this distribution or at
18 *  http://www.rtems.com/license/LICENSE.
19 *
20 *  $Id$
21 */
22
23#ifdef HAVE_CONFIG_H
24#include "config.h"
25#endif
26
27#include <bsp.h> /* for device driver prototypes */
28
29#include <stdio.h>
30#include <stdlib.h>
31
32rtems_task Init(
33  rtems_task_argument ignored
34)
35{
36  printf( "\n\n*** HELLO WORLD TEST ***\n" );
37  printf( "Hello World\n" );
38  printf( "*** END OF HELLO WORLD TEST ***\n" );
39  exit( 0 );
40}
41
42
43/* NOTICE: the clock driver is explicitly disabled */
44#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
45#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
46
47#define CONFIGURE_MAXIMUM_TASKS            1
48#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
49
50#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
51
52#define CONFIGURE_INIT
53#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.