forked from Imagelibrary/rtems
71 lines
1.8 KiB
C
71 lines
1.8 KiB
C
/**
|
|
* @file
|
|
*
|
|
* @brief Initializes the RTEMS API
|
|
*
|
|
* @ingroup ClassicRTEMS
|
|
*/
|
|
|
|
/*
|
|
* COPYRIGHT (c) 1989-2008.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.org/license/LICENSE.
|
|
*/
|
|
|
|
#if HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#define RTEMS_API_INIT
|
|
|
|
#include <rtems/system.h>
|
|
#include <rtems/rtems/status.h>
|
|
#include <rtems/rtems/rtemsapi.h>
|
|
|
|
#include <rtems/rtems/intr.h>
|
|
#include <rtems/rtems/barrierimpl.h>
|
|
#include <rtems/rtems/clock.h>
|
|
#include <rtems/rtems/tasksimpl.h>
|
|
#include <rtems/rtems/dpmemimpl.h>
|
|
#include <rtems/rtems/eventimpl.h>
|
|
#include <rtems/rtems/messageimpl.h>
|
|
#if defined(RTEMS_MULTIPROCESSING)
|
|
#include <rtems/rtems/mp.h>
|
|
#endif
|
|
#include <rtems/rtems/partimpl.h>
|
|
#include <rtems/rtems/ratemonimpl.h>
|
|
#include <rtems/rtems/regionimpl.h>
|
|
#include <rtems/rtems/semimpl.h>
|
|
#include <rtems/rtems/signalimpl.h>
|
|
#include <rtems/rtems/timerimpl.h>
|
|
|
|
Objects_Information *_RTEMS_Objects[ OBJECTS_RTEMS_CLASSES_LAST + 1 ];
|
|
|
|
void _RTEMS_API_Initialize(void)
|
|
{
|
|
/*
|
|
* Install our API Object Management Table and initialize the
|
|
* various managers.
|
|
*/
|
|
_Objects_Information_table[OBJECTS_CLASSIC_API] = _RTEMS_Objects;
|
|
|
|
#if defined(RTEMS_MULTIPROCESSING)
|
|
_Multiprocessing_Manager_initialization();
|
|
#endif
|
|
|
|
_RTEMS_tasks_Manager_initialization();
|
|
_Timer_Manager_initialization();
|
|
_Signal_Manager_initialization();
|
|
_Event_Manager_initialization();
|
|
_Message_queue_Manager_initialization();
|
|
_Semaphore_Manager_initialization();
|
|
_Partition_Manager_initialization();
|
|
_Region_Manager_initialization();
|
|
_Dual_ported_memory_Manager_initialization();
|
|
_Rate_monotonic_Manager_initialization();
|
|
_Barrier_Manager_initialization();
|
|
}
|