source: examples-v2/hello/hello_world_c/test.c

Last change on this file was 61d2a1f, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 29, 2014 at 6:17:40 PM

Miscellaneous clean up and warning removal

  • Property mode set to 100644
File size: 692 bytes
Line 
1/*
2 *  Classic API Hello World
3 */
4
5#include <rtems.h>
6#include <stdlib.h>
7#include <stdio.h>
8
9rtems_task Init(
10  rtems_task_argument ignored
11)
12{
13  printf( "\n\n*** HELLO WORLD TEST ***\n" );
14  printf( "Hello World\n" );
15  printf( "*** END OF HELLO WORLD TEST ***\n" );
16  exit( 0 );
17}
18
19/* configuration information */
20
21#include <bsp.h>
22
23/* NOTICE: the clock driver is explicitly disabled */
24#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
25#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
26#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
27
28#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
29#define CONFIGURE_MAXIMUM_TASKS 1
30
31#define CONFIGURE_INIT
32#include <rtems/confdefs.h>
33/* end of file */
Note: See TracBrowser for help on using the repository browser.