source: rtems/cpukit/libdrvmgr/drvmgr_init.c @ 0decc806

4.115
Last change on this file since 0decc806 was 0decc806, checked in by Daniel Hellstrom <daniel@…>, on 04/09/15 at 14:09:13

DRVMGR: updated license to rtems.org

  • Property mode set to 100644
File size: 598 bytes
Line 
1/* Driver Manager Initialization
2 *
3 * COPYRIGHT (c) 2009 Cobham Gaisler AB.
4 *
5 * The license and distribution terms for this file may be
6 * found in the file LICENSE in this distribution or at
7 * http://www.rtems.org/license/LICENSE.
8 */
9
10#include <drvmgr/drvmgr.h>
11
12/* Init driver manager - all in one go. Typically called from Init task when
13 * user wants to initilize driver manager after startup, otherwise not used.
14 */
15int drvmgr_init(void)
16{
17        int level;
18
19        _DRV_Manager_initialization();
20
21        for (level = 1; level <= DRVMGR_LEVEL_MAX; level++)
22                _DRV_Manager_init_level(level);
23
24        return 0;
25}
Note: See TracBrowser for help on using the repository browser.