1 | /* Minimum Size Application Initialization |
---|
2 | * |
---|
3 | * COPYRIGHT (c) 1989-2008. |
---|
4 | * On-Line Applications Research Corporation (OAR). |
---|
5 | * |
---|
6 | * The license and distribution terms for this file may be |
---|
7 | * found in the file LICENSE in this distribution or at |
---|
8 | * http://www.rtems.com/license/LICENSE. |
---|
9 | * |
---|
10 | * $Id$ |
---|
11 | */ |
---|
12 | |
---|
13 | #include <bsp.h> |
---|
14 | |
---|
15 | rtems_task Init( |
---|
16 | rtems_task_argument ignored |
---|
17 | ) |
---|
18 | { |
---|
19 | rtems_mode mode; |
---|
20 | |
---|
21 | /* initialize application */ |
---|
22 | |
---|
23 | /* Real application would call idle loop functionality */ |
---|
24 | |
---|
25 | /* but in this case, just return and fall into a fatal error */ |
---|
26 | } |
---|
27 | |
---|
28 | /* configuration information */ |
---|
29 | |
---|
30 | /* |
---|
31 | * This application has no device drivers. |
---|
32 | */ |
---|
33 | /* NOTICE: the clock driver is explicitly disabled */ |
---|
34 | #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER |
---|
35 | |
---|
36 | /* |
---|
37 | * This is the smallest IO subsystem RTEMS currently supports. |
---|
38 | */ |
---|
39 | #define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM |
---|
40 | |
---|
41 | /* |
---|
42 | * This disables reentrancy support in the C Library. It is usually |
---|
43 | * not something an application wants to do unless the development |
---|
44 | * team is committed to using C Library routines that are KNOWN to |
---|
45 | * be reentrant. Caveat Emptor!! |
---|
46 | */ |
---|
47 | #define CONFIGURE_DISABLE_NEWLIB_REENTRANCY |
---|
48 | |
---|
49 | /* |
---|
50 | * This test does not need the console driver so there is no reason |
---|
51 | * to configure termios. |
---|
52 | */ |
---|
53 | #define CONFIGURE_TERMIOS_DISABLED |
---|
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 disables Classic API Notepads and saves 16 uint32_t's of RAM |
---|
75 | * per Task Control Block. If you aren't using these and are tight |
---|
76 | * on RAM, this is an option. |
---|
77 | */ |
---|
78 | #define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS |
---|
79 | |
---|
80 | /* |
---|
81 | * In this application, the initialization task performs the system |
---|
82 | * initialization and then transforms itself into the idle task. |
---|
83 | */ |
---|
84 | #define CONFIGURE_IDLE_TASK_BODY Init |
---|
85 | #define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION |
---|
86 | |
---|
87 | /* |
---|
88 | * If you are debugging confdefs.h, define this |
---|
89 | */ |
---|
90 | /* #define CONFIGURE_CONFDEFS_DEBUG */ |
---|
91 | |
---|
92 | /* |
---|
93 | * Instantiate the configuration tables. |
---|
94 | */ |
---|
95 | #define CONFIGURE_INIT |
---|
96 | |
---|
97 | #include <rtems/confdefs.h> |
---|
98 | |
---|
99 | /* global variables */ |
---|