4.115
Last change
on this file since aea93fb4 was
263f4bec,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/07/14 at 12:50:37
|
score: Statically initialize IO manager
This simplifies the RTEMS initialization and helps to avoid a memory
overhead. The workspace demands of the IO manager were not included in
the <rtems/confdefs.h> workspace size estimate. This is also fixed as a
side-effect.
Update documentation and move "Specifying Application Defined Device
Driver Table" to the section end. This sub-section is not that
important for the user. Mentioning this at the beginning may lead to
confusion.
|
-
Property mode set to
100644
|
File size:
604 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Initialization of Device Drivers |
---|
5 | * |
---|
6 | * @ingroup ClassicIO |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2008. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #if HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems/io.h> |
---|
23 | |
---|
24 | void _IO_Initialize_all_drivers( void ) |
---|
25 | { |
---|
26 | rtems_device_major_number major; |
---|
27 | |
---|
28 | for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) |
---|
29 | (void) rtems_io_initialize( major, 0, NULL ); |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.