source: rtems/testsuites/samples/hello/init.c @ 9391f6d

4.11
Last change on this file since 9391f6d was 9391f6d, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 10, 2014 at 3:31:43 PM

tests/samples: Use <rtems/test.h>

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2012.
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
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#include <rtems/test.h>
15
16#include <bsp.h> /* for device driver prototypes */
17
18#include <stdio.h>
19#include <stdlib.h>
20
21/* forward declarations to avoid warnings */
22rtems_task Init(rtems_task_argument argument);
23
24const char rtems_test_name[] = "HELLO WORLD";
25
26rtems_task Init(
27  rtems_task_argument ignored
28)
29{
30  rtems_test_begin();
31  printf( "Hello World\n" );
32  rtems_test_end();
33  exit( 0 );
34}
35
36
37/* NOTICE: the clock driver is explicitly disabled */
38#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
39#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
40
41#define CONFIGURE_MAXIMUM_TASKS            1
42#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
43
44#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
45
46#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
47
48#define CONFIGURE_INIT
49#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.