source: rtems/testsuites/samples/minimum/init.c @ 53b6484

Last change on this file since 53b6484 was 53b6484, checked in by Sebastian Huber <sebastian.huber@…>, on Feb 5, 2018 at 8:57:45 AM

termios: Remove obsolete configuration options

Update #2843.

  • Property mode set to 100644
File size: 2.8 KB
Line 
1/**
2 *  @file
3 *
4 *  Minimum Size Application Initialization
5 */
6
7/*
8 *  COPYRIGHT (c) 1989-2012.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.org/license/LICENSE.
14 */
15
16#ifdef HAVE_CONFIG_H
17#include "config.h"
18#endif
19
20#include <bsp.h>
21#include <rtems/score/thread.h>
22
23static void *Init( uintptr_t ignored )
24{
25  /* initialize application */
26
27  /* Real application would call idle loop functionality */
28
29  /* but in this case, just return and fall into a fatal error */
30
31  return NULL;
32}
33
34/* configuration information */
35
36/*
37 * This application has no device drivers.
38 */
39/* NOTICE: the clock driver is explicitly disabled */
40#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
41
42/*
43 *  This application has no filesytem and libio support.
44 */
45#define CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
46
47/*
48 *  This disables reentrancy support in the C Library.  It is usually
49 *  not something an application wants to do unless the development
50 *  team is committed to using C Library routines that are KNOWN to
51 *  be reentrant.  Caveat Emptor!!
52 */
53#define CONFIGURE_DISABLE_NEWLIB_REENTRANCY
54
55/*
56 *  This test does not use any stdio.
57 */
58#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 0
59
60/*
61 *  This may prevent us from running on every architecture but it
62 *  demonstrates that the user can specify how small of a minimum
63 *  stack they want.
64 */
65#define CONFIGURE_MINIMUM_TASK_STACK_SIZE 512
66
67/*
68 *  This lowers the number of priorities that this test is able to
69 *  use.  The Idle task will be running at the lowest priority.
70 */
71#define CONFIGURE_MAXIMUM_PRIORITY 15
72
73/*
74 *  This configures RTEMS to use a single memory pool for the RTEMS Workspace
75 *  and C Program Heap.  If not defined, there will be separate memory pools
76 *  for the RTEMS Workspace and C Program Heap.  Having separate pools
77 *  does haved some advantages in the event a task blows a stack or writes
78 *  outside its memory area. However, in low memory systems the overhead of
79 *  the two pools plus the potential for unused memory in either pool is
80 *  very undesirable.
81 *
82 *  In high memory environments, this is desirable when you want to use
83 *  the RTEMS "unlimited" objects option.  You will be able to create objects
84 *  until you run out of memory.
85 */
86#define CONFIGURE_UNIFIED_WORK_AREAS
87
88/*
89 *  In this application, the initialization task performs the system
90 *  initialization and then transforms itself into the idle task.
91 */
92#define CONFIGURE_IDLE_TASK_BODY Init
93#define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION
94
95/*
96 *  If you are debugging confdefs.h, define this
97 */
98/* #define CONFIGURE_CONFDEFS_DEBUG */
99
100/*
101 *  Instantiate the configuration tables.
102 */
103#define CONFIGURE_INIT
104
105#include <rtems/confdefs.h>
106
107/* global variables */
Note: See TracBrowser for help on using the repository browser.