source: examples-v2/hello/both_hello/test.c @ 001f588

4.11
Last change on this file since 001f588 was 001f588, checked in by Gedare Bloom <gedare@…>, on Mar 3, 2015 at 6:21:01 PM

hello: remove spurious code. Close #2264

  • Property mode set to 100644
File size: 753 bytes
Line 
1/*
2 *  Simple test program -- simplified version of sample test hello.
3 */
4
5#include <bsp.h>
6#include <stdio.h>
7#include <stdlib.h>
8#include <unistd.h>
9
10rtems_task Init(
11  rtems_task_argument ignored
12)
13{
14  printf( "Classic -- Hello World\n" );
15  rtems_task_delete( RTEMS_SELF );
16}
17
18void *POSIX_Init(
19  void *argument
20)
21{
22  printf( "POSIX -- Hello World\n" );
23  sleep( 1 );
24  exit( 0 );
25}
26
27/* configuration information */
28
29#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
30#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
31
32#define CONFIGURE_POSIX_INIT_THREAD_TABLE
33#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
34
35#define CONFIGURE_MAXIMUM_TASKS 1
36#define CONFIGURE_MAXIMUM_POSIX_THREADS 1
37
38#define CONFIGURE_INIT
39#include <rtems/confdefs.h>
40/* end of file */
Note: See TracBrowser for help on using the repository browser.