source: rtems-eclipse-plug-in/org.rtems.cdt.toolchain/templates/hello/src/init.c @ f124b04

Last change on this file since f124b04 was f124b04, checked in by Daron Chabot <daron.chabot@…>, on Nov 24, 2008 at 3:01:03 AM

Clean up of plugin.xml and addition of simpler, "Hello World" template.

Removed shared-lib option from c/c++ linker tools: RTEMS doesn't support shared libs.

Removed -D_REENTRANT flag. I've no idea where that came from: it's not in RTEMS or newlib.

Added more stringent test for empty RTEMS_BSP_DEFINED_SYMBOLS environment variable.
NOTE: none of the defs (provided by Robert) for this variable are necessary.

  • Property mode set to 100644
File size: 918 bytes
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#define CONFIGURE_INIT
24#include "system.h"
25#include <stdio.h>
26#include <stdlib.h>
27
28rtems_task Init(
29  rtems_task_argument ignored
30)
31{
32  printf( "\n\n*** HELLO WORLD TEST ***\n" );
33  printf( "Hello World\n" );
34  printf( "*** END OF HELLO WORLD TEST ***\n" );
35  exit( 0 );
36}
Note: See TracBrowser for help on using the repository browser.