source: rtems/testsuites/samples/minimum/init.c @ d05d31f

4.115
Last change on this file since d05d31f was d05d31f, checked in by Joel Sherrill <joel.sherrill@…>, on 03/22/15 at 14:43:07

samples/minimum/init.c: Add cast to avoid warning

  • Property mode set to 100644
File size: 3.1 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
[5f0cd34]23/* forward declarations to avoid warnings */
24rtems_task Init(rtems_task_argument argument);
25
[d7851582]26rtems_task Init(
27  rtems_task_argument ignored
28)
29{
[f02ada81]30  /* initialize application */
31
32  /* Real application would call idle loop functionality */
33
[b1274bd9]34  /* but in this case, just return and fall into a fatal error */
[d7851582]35}
36
37/* configuration information */
38
[f02ada81]39/*
40 * This application has no device drivers.
41 */
[a645637]42/* NOTICE: the clock driver is explicitly disabled */
43#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
44
[6b6c06b]45/*
[e8fcadb]46 *  This application has no filesytem and libio support.
[6b6c06b]47 */
[e8fcadb]48#define CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
[6b6c06b]49
50/*
51 *  This disables reentrancy support in the C Library.  It is usually
52 *  not something an application wants to do unless the development
53 *  team is committed to using C Library routines that are KNOWN to
54 *  be reentrant.  Caveat Emptor!!
55 */
56#define CONFIGURE_DISABLE_NEWLIB_REENTRANCY
57
[5fe0640]58/*
59 *  This test does not need the console driver so there is no reason
60 *  to configure termios.
61 */
62#define CONFIGURE_TERMIOS_DISABLED
63
64/*
65 *  This test does not use any stdio.
66 */
67#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 0
68
[2156876]69/*
70 *  This may prevent us from running on every architecture but it
71 *  demonstrates that the user can specify how small of a minimum
72 *  stack they want.
73 */
74#define CONFIGURE_MINIMUM_TASK_STACK_SIZE 512
75
[f02ada81]76/*
77 *  This lowers the number of priorities that this test is able to
78 *  use.  The Idle task will be running at the lowest priority.
79 */
80#define CONFIGURE_MAXIMUM_PRIORITY 15
81
[1117465]82/*
83 *  This configures RTEMS to use a single memory pool for the RTEMS Workspace
84 *  and C Program Heap.  If not defined, there will be separate memory pools
85 *  for the RTEMS Workspace and C Program Heap.  Having separate pools
86 *  does haved some advantages in the event a task blows a stack or writes
87 *  outside its memory area. However, in low memory systems the overhead of
88 *  the two pools plus the potential for unused memory in either pool is
89 *  very undesirable.
90 *
91 *  In high memory environments, this is desirable when you want to use
92 *  the RTEMS "unlimited" objects option.  You will be able to create objects
93 *  until you run out of memory.
94 */
95#define CONFIGURE_UNIFIED_WORK_AREAS
96
[f02ada81]97/*
98 *  In this application, the initialization task performs the system
99 *  initialization and then transforms itself into the idle task.
100 */
[d05d31f]101#define CONFIGURE_IDLE_TASK_BODY (Thread_Entry_numeric) Init
[f02ada81]102#define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION
103
[42b1fe6e]104/*
105 *  If you are debugging confdefs.h, define this
106 */
107/* #define CONFIGURE_CONFDEFS_DEBUG */
108
[f02ada81]109/*
110 *  Instantiate the configuration tables.
111 */
[d7851582]112#define CONFIGURE_INIT
113
[c8fea7a]114#include <rtems/confdefs.h>
[d7851582]115
116/* global variables */
Note: See TracBrowser for help on using the repository browser.