mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-28 23:49:56 +08:00
* itron/include/rtems/itron/config.h, itron/include/rtems/itron/eventflags.h, itron/include/rtems/itron/fmempool.h, itron/include/rtems/itron/mbox.h, itron/include/rtems/itron/msgbuffer.h, itron/include/rtems/itron/port.h, itron/include/rtems/itron/semaphore.h, itron/include/rtems/itron/task.h, itron/include/rtems/itron/vmempool.h, itron/src/eventflags.c, itron/src/fmempool.c, itron/src/itroninittasks.c, itron/src/itronsem.c, itron/src/mbox.c, itron/src/msgbuffer.c, itron/src/port.c, itron/src/task.c, itron/src/vmempool.c, sapi/src/itronapi.c: Convert ITRON manager initialization routines to directly pull parameters from configuration table.
59 lines
1.6 KiB
C
59 lines
1.6 KiB
C
/*
|
|
* ITRON Message Buffer Manager
|
|
*
|
|
* 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.com/license/LICENSE.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#if HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <rtems/itron.h>
|
|
#include <rtems/config.h>
|
|
#include <rtems/itron/msgbuffer.h>
|
|
#include <rtems/itron/task.h>
|
|
|
|
/*
|
|
* _ITRON_Message_buffer_Manager_initialization
|
|
*
|
|
* This routine initializes all message buffer manager related data
|
|
* structures.
|
|
*
|
|
* Input parameters: NONE
|
|
*
|
|
* Output parameters: NONE
|
|
*/
|
|
|
|
void _ITRON_Message_buffer_Manager_initialization(void)
|
|
{
|
|
_Objects_Initialize_information(
|
|
&_ITRON_Message_buffer_Information, /* object information table */
|
|
OBJECTS_ITRON_API, /* object API */
|
|
OBJECTS_ITRON_MESSAGE_BUFFERS, /* object class */
|
|
Configuration_ITRON_API.maximum_message_buffers,
|
|
/* maximum objects of this class */
|
|
sizeof( ITRON_Message_buffer_Control ),
|
|
/* size of this object's control block */
|
|
FALSE, /* TRUE if names for this object are strings */
|
|
ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */
|
|
#if defined(RTEMS_MULTIPROCESSING)
|
|
,
|
|
FALSE, /* TRUE if this is a global object class */
|
|
NULL /* Proxy extraction support callout */
|
|
#endif
|
|
);
|
|
|
|
/*
|
|
* Register the MP Process Packet routine.
|
|
*
|
|
* NOTE: No MP Support YET in RTEMS ITRON implementation.
|
|
*/
|
|
}
|