forked from Imagelibrary/rtems
Move object related declarations and definitions to <rtems/rtems/object.h>. The goal is to make <rtems.h> an include only header file.
122 lines
3.5 KiB
C
122 lines
3.5 KiB
C
/**
|
|
* @file
|
|
*
|
|
* @ingroup RTEMSAPIClassic
|
|
*
|
|
* the Public Interface to the RTEMS Classic API
|
|
*/
|
|
|
|
/* 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.
|
|
*/
|
|
|
|
#ifndef _RTEMS_H
|
|
#define _RTEMS_H
|
|
|
|
/**
|
|
* @defgroup RTEMSAPIClassic Classic
|
|
*
|
|
* @ingroup RTEMSAPI
|
|
*
|
|
* @brief RTEMS Classic API definitions and modules.
|
|
*/
|
|
/** @{ */
|
|
|
|
#include <rtems/rtems/status.h>
|
|
#include <rtems/rtems/types.h>
|
|
|
|
#include <rtems/config.h>
|
|
#include <rtems/init.h>
|
|
#include <rtems/rtems/options.h>
|
|
#include <rtems/rtems/tasks.h>
|
|
#include <rtems/rtems/intr.h>
|
|
#include <rtems/rtems/barrier.h>
|
|
#include <rtems/rtems/cache.h>
|
|
#include <rtems/rtems/clock.h>
|
|
#include <rtems/extension.h>
|
|
#include <rtems/rtems/timer.h>
|
|
#include <rtems/rtems/sem.h>
|
|
#include <rtems/rtems/message.h>
|
|
#include <rtems/rtems/event.h>
|
|
#include <rtems/rtems/signal.h>
|
|
#include <rtems/rtems/event.h>
|
|
#include <rtems/rtems/object.h>
|
|
#include <rtems/rtems/part.h>
|
|
#include <rtems/rtems/region.h>
|
|
#include <rtems/rtems/dpmem.h>
|
|
#include <rtems/io.h>
|
|
#include <rtems/fatal.h>
|
|
#include <rtems/rtems/ratemon.h>
|
|
#if defined(RTEMS_MULTIPROCESSING)
|
|
#include <rtems/rtems/mp.h>
|
|
#endif
|
|
|
|
#include <rtems/rtems/support.h>
|
|
#include <rtems/score/stack.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Minimum stack size which every thread must exceed.
|
|
*
|
|
* It is the minimum stack size recommended for use on this processor. This
|
|
* value is selected by the RTEMS developers conservatively to minimize the
|
|
* risk of blown stacks for most user applications. Using this constant when
|
|
* specifying the task stack size, indicates that the stack size will be at
|
|
* least RTEMS_MINIMUM_STACK_SIZE bytes in size. If the user configured minimum
|
|
* stack size is larger than the recommended minimum, then it will be used.
|
|
*/
|
|
#define RTEMS_MINIMUM_STACK_SIZE STACK_MINIMUM_SIZE
|
|
|
|
/**
|
|
* @brief Specifies that the task should be created with the configured minimum
|
|
* stack size.
|
|
*
|
|
* Using this constant when specifying the task stack size indicates that this
|
|
* task is to be created with a stack size of the minimum stack size that was
|
|
* configured by the application. If not explicitly configured by the
|
|
* application, the default configured minimum stack size is the processor
|
|
* dependent value RTEMS_MINIMUM_STACK_SIZE. Since this uses the configured
|
|
* minimum stack size value, you may get a stack size that is smaller or larger
|
|
* than the recommended minimum. This can be used to provide large stacks for
|
|
* all tasks on complex applications or small stacks on applications that are
|
|
* trying to conserve memory.
|
|
*/
|
|
#define RTEMS_CONFIGURED_MINIMUM_STACK_SIZE 0
|
|
|
|
/**
|
|
* @brief Constant for indefinite wait.
|
|
*
|
|
* This is actually an illegal interval value.
|
|
*/
|
|
#define RTEMS_NO_TIMEOUT ((rtems_interval) WATCHDOG_NO_TIMEOUT)
|
|
|
|
/**
|
|
* @brief An MPCI must support packets of at least this size.
|
|
*/
|
|
#define RTEMS_MINIMUM_PACKET_SIZE MP_PACKET_MINIMUM_PACKET_SIZE
|
|
|
|
/**
|
|
* @brief Defines the count of @c uint32_t numbers in a packet which must be
|
|
* converted to native format in a heterogeneous system.
|
|
*
|
|
* In packets longer than this value, some of the extra data may be a user
|
|
* message buffer which is not automatically endian swapped.
|
|
*/
|
|
#define RTEMS_MINIMUN_HETERO_CONVERSION MP_PACKET_MINIMUN_HETERO_CONVERSION
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|
|
|
|
#endif
|
|
/* end of include file */
|