Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:12

0001 /* SPDX-License-Identifier: BSD-2-Clause */
0002 
0003 /**
0004  * @file
0005  *
0006  * @ingroup RTEMSImplApplConfig
0007  *
0008  * @brief This header file evaluates configuration options related to the
0009  *   Classic API objects configuration.
0010  *
0011  * For the task objects configuration see <rtems/confdefs/threads.h>.
0012  */
0013 
0014 /*
0015  * Copyright (C) 2020 embedded brains GmbH & Co. KG
0016  *
0017  * Redistribution and use in source and binary forms, with or without
0018  * modification, are permitted provided that the following conditions
0019  * are met:
0020  * 1. Redistributions of source code must retain the above copyright
0021  *    notice, this list of conditions and the following disclaimer.
0022  * 2. Redistributions in binary form must reproduce the above copyright
0023  *    notice, this list of conditions and the following disclaimer in the
0024  *    documentation and/or other materials provided with the distribution.
0025  *
0026  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0027  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0028  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0029  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0030  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0031  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0032  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0033  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0034  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0035  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0036  * POSSIBILITY OF SUCH DAMAGE.
0037  */
0038 
0039 #ifndef _RTEMS_CONFDEFS_OBJECTSCLASSIC_H
0040 #define _RTEMS_CONFDEFS_OBJECTSCLASSIC_H
0041 
0042 #ifndef __CONFIGURATION_TEMPLATE_h
0043 #error "Do not include this file directly, use <rtems/confdefs.h> instead"
0044 #endif
0045 
0046 #ifdef CONFIGURE_INIT
0047 
0048 #include <rtems/confdefs/unlimited.h>
0049 
0050 #if CONFIGURE_MAXIMUM_BARRIERS > 0
0051   #include <rtems/rtems/barrierdata.h>
0052 #endif
0053 
0054 #if CONFIGURE_MAXIMUM_PORTS > 0
0055   #include <rtems/rtems/dpmemdata.h>
0056 #endif
0057 
0058 #if CONFIGURE_MAXIMUM_MESSAGE_QUEUES > 0
0059   #include <rtems/rtems/messagedata.h>
0060 #endif
0061 
0062 #if CONFIGURE_MAXIMUM_PARTITIONS > 0
0063   #include <rtems/rtems/partdata.h>
0064 #endif
0065 
0066 #if CONFIGURE_MAXIMUM_PERIODS > 0
0067   #include <rtems/rtems/ratemondata.h>
0068 #endif
0069 
0070 #if CONFIGURE_MAXIMUM_REGIONS > 0
0071   #include <rtems/rtems/regiondata.h>
0072 #endif
0073 
0074 #if CONFIGURE_MAXIMUM_SEMAPHORES > 0
0075   #include <rtems/confdefs/scheduler.h>
0076   #include <rtems/rtems/semdata.h>
0077 #endif
0078 
0079 #if CONFIGURE_MAXIMUM_TIMERS > 0
0080   #include <rtems/rtems/timerdata.h>
0081 #endif
0082 
0083 #ifdef __cplusplus
0084 extern "C" {
0085 #endif
0086 
0087 #if CONFIGURE_MAXIMUM_BARRIERS > 0
0088   BARRIER_INFORMATION_DEFINE( CONFIGURE_MAXIMUM_BARRIERS );
0089 #endif
0090 
0091 #if CONFIGURE_MAXIMUM_MESSAGE_QUEUES > 0
0092   MESSAGE_QUEUE_INFORMATION_DEFINE( CONFIGURE_MAXIMUM_MESSAGE_QUEUES );
0093 #endif
0094 
0095 #if CONFIGURE_MAXIMUM_PARTITIONS > 0
0096   PARTITION_INFORMATION_DEFINE( CONFIGURE_MAXIMUM_PARTITIONS );
0097 #endif
0098 
0099 #if CONFIGURE_MAXIMUM_PERIODS > 0
0100   RATE_MONOTONIC_INFORMATION_DEFINE( CONFIGURE_MAXIMUM_PERIODS );
0101 #endif
0102 
0103 #if CONFIGURE_MAXIMUM_PORTS > 0
0104   DUAL_PORTED_MEMORY_INFORMATION_DEFINE( CONFIGURE_MAXIMUM_PORTS );
0105 #endif
0106 
0107 #if CONFIGURE_MAXIMUM_REGIONS > 0
0108   REGION_INFORMATION_DEFINE( CONFIGURE_MAXIMUM_REGIONS );
0109 #endif
0110 
0111 #if CONFIGURE_MAXIMUM_SEMAPHORES > 0
0112   SEMAPHORE_INFORMATION_DEFINE(
0113     CONFIGURE_MAXIMUM_SEMAPHORES,
0114     _CONFIGURE_SCHEDULER_COUNT
0115   );
0116 #endif
0117 
0118 #if CONFIGURE_MAXIMUM_TIMERS > 0
0119   TIMER_INFORMATION_DEFINE( CONFIGURE_MAXIMUM_TIMERS );
0120 #endif
0121 
0122 #ifdef __cplusplus
0123 }
0124 #endif
0125 
0126 #endif /* CONFIGURE_INIT */
0127 
0128 #endif /* _RTEMS_CONFDEFS_OBJECTSCLASSIC_H */