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

5
Last change on this file since 53b6484 was 53b6484, checked in by Sebastian Huber <sebastian.huber@…>, on 02/05/18 at 08:57:45

termios: Remove obsolete configuration options

Update #2843.

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[5f0cd34]1/**
2 *  @file
[d7851582]3 *
[5f0cd34]4 *  Minimum Size Application Initialization
5 */
6
7/*
8 *  COPYRIGHT (c) 1989-2012.
[d7851582]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
[c499856]13 *  http://www.rtems.org/license/LICENSE.
[d7851582]14 */
15
[e313551]16#ifdef HAVE_CONFIG_H
17#include "config.h"
18#endif
19
[df49c60]20#include <bsp.h>
[3ac6eb90]21#include <rtems/score/thread.h>
[d7851582]22
[ccd5434]23static void *Init( uintptr_t ignored )
[d7851582]24{
[f02ada81]25  /* initialize application */
26
27  /* Real application would call idle loop functionality */
28
[b1274bd9]29  /* but in this case, just return and fall into a fatal error */
[ccd5434]30
31  return NULL;
[d7851582]32}
33
34/* configuration information */
35
[f02ada81]36/*
37 * This application has no device drivers.
38 */
[a645637]39/* NOTICE: the clock driver is explicitly disabled */
40#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
41
[6b6c06b]42/*
[e8fcadb]43 *  This application has no filesytem and libio support.
[6b6c06b]44 */
[e8fcadb]45#define CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
[6b6c06b]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
[5fe0640]55/*
56 *  This test does not use any stdio.
57 */
58#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 0
59
[2156876]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
[f02ada81]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
[1117465]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
[f02ada81]88/*
89 *  In this application, the initialization task performs the system
90 *  initialization and then transforms itself into the idle task.
91 */
[ccd5434]92#define CONFIGURE_IDLE_TASK_BODY Init
[f02ada81]93#define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION
94
[42b1fe6e]95/*
96 *  If you are debugging confdefs.h, define this
97 */
98/* #define CONFIGURE_CONFDEFS_DEBUG */
99
[f02ada81]100/*
101 *  Instantiate the configuration tables.
102 */
[d7851582]103#define CONFIGURE_INIT
104
[c8fea7a]105#include <rtems/confdefs.h>
[d7851582]106
107/* global variables */
Note: See TracBrowser for help on using the repository browser.