source: rtems/testsuites/libtests/math/init.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.5 KB
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.org/license/LICENSE.
19 */
20
21#ifdef HAVE_CONFIG_H
22#include "config.h"
23#endif
24
25#if __rtems__
26#include <bsp.h> /* for device driver prototypes */
27#include <rtems/test.h>
28
29const char rtems_test_name[] = "MATH";
30#endif
31
32#include <stdio.h>
33#include <stdlib.h>
34
35extern void domath(void);
36
37#if __rtems__
38/* NOTICE: the clock driver is explicitly disabled */
39#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
40#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
41
42#define CONFIGURE_MAXIMUM_TASKS           1
43#define CONFIGURE_INIT_TASK_ATTRIBUTES    RTEMS_FLOATING_POINT
44#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
45
46#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
47
48#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
49
50#define CONFIGURE_INIT
51#include <rtems/confdefs.h>
52
53rtems_task Init(
54  rtems_task_argument ignored
55)
56#else
57int main( void )
58#endif
59{
60#if __rtems__
61  rtems_test_begin();
62#endif
63
64  domath();
65
66#if __rtems__
67  rtems_test_end();
68#endif
69  exit( 0 );
70}
71
Note: See TracBrowser for help on using the repository browser.