source: rtems/testsuites/samples/hello/init.c @ 721fe34

4.115
Last change on this file since 721fe34 was 5f0cd34, checked in by Joel Sherrill <joel.sherrill@…>, on 05/12/12 at 16:12:57

samples - Eliminate missing prototype warnings

  • Property mode set to 100644
File size: 1.0 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 <bsp.h> /* for device driver prototypes */
15
16#include <stdio.h>
17#include <stdlib.h>
18
19/* forward declarations to avoid warnings */
20rtems_task Init(rtems_task_argument argument);
21
22rtems_task Init(
23  rtems_task_argument ignored
24)
25{
26  printf( "\n\n*** HELLO WORLD TEST ***\n" );
27  printf( "Hello World\n" );
28  printf( "*** END OF HELLO WORLD TEST ***\n" );
29  exit( 0 );
30}
31
32
33/* NOTICE: the clock driver is explicitly disabled */
34#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
35#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
36
37#define CONFIGURE_MAXIMUM_TASKS            1
38#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
39
40#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
41
42#define CONFIGURE_INIT
43#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.