source: rtems/testsuites/libtests/complex/init.c @ b824fb8

4.115
Last change on this file since b824fb8 was b824fb8, checked in by Ralf Corsépius <ralf.corsepius@…>, on 05/23/12 at 14:44:33

Revert "libtests/complex: Avoid generated files"

This reverts commit a80a108d447d596e476611108cd468ec993be4a6.

  • Property mode set to 100644
File size: 1.6 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.com/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#endif
28
29#include <stdio.h>
30#include <stdlib.h>
31
32extern void docomplex(void);
33extern void docomplexf(void);
34#ifndef NO_LONG_DOUBLE
35extern void docomplexl(void);
36#endif
37
38#if __rtems__
39/* NOTICE: the clock driver is explicitly disabled */
40#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
41#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
42
43#define CONFIGURE_MAXIMUM_TASKS            1
44#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
45
46#define CONFIGURE_INIT_TASK_ATTRIBUTES    RTEMS_FLOATING_POINT
47#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
48
49#define CONFIGURE_INIT
50#include <rtems/confdefs.h>
51
52rtems_task Init(
53  rtems_task_argument ignored
54)
55#else
56int main( void )
57#endif
58{
59  fprintf( stdout, "*** COMPLEX MATH TEST ***\n" );
60
61  docomplex();
62  docomplexf(); 
63#ifndef NO_LONG_DOUBLE
64  docomplexl();
65#endif
66  fprintf( stdout, "*** END OF COMPLEX MATH TEST ***\n" );
67  exit( 0 );
68}
Note: See TracBrowser for help on using the repository browser.