From 352c9b2035e32e56f10f261d94955d97f4ab0f1c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 9 Nov 1999 22:07:23 +0000 Subject: This patch adds the basic framework for the ITRON 3.0 API implementation for RTEMS. --- c/src/exec/sapi/include/rtems/config.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'c/src/exec/sapi/include/rtems') diff --git a/c/src/exec/sapi/include/rtems/config.h b/c/src/exec/sapi/include/rtems/config.h index 7439a6e3fe..636813edc5 100644 --- a/c/src/exec/sapi/include/rtems/config.h +++ b/c/src/exec/sapi/include/rtems/config.h @@ -25,8 +25,8 @@ extern "C" { * Unlimited object support. Changes the configuration table entry for POSIX * or RTEMS APIs to bounded only by the memory of the work-space. * - * Use the macro to define the resource unlimited before placing in the configuration - * table. + * Use the macro to define the resource unlimited before placing in + * the configuration table. */ #include @@ -37,16 +37,22 @@ extern "C" { /* * This is kind of kludgy but it allows targets to totally ignore the - * POSIX API safely. + * optional APIs like POSIX and ITRON safely. */ #ifdef RTEMS_POSIX_API #include #else - typedef void *posix_api_configuration_table; #endif +#ifdef RTEMS_ITRON_API +#include +#include +#else +typedef void *itron_api_configuration_table; +#endif + #include /* XXX should cover these @@ -106,6 +112,7 @@ typedef struct { rtems_multiprocessing_table *User_multiprocessing_table; rtems_api_configuration_table *RTEMS_api_configuration; posix_api_configuration_table *POSIX_api_configuration; + itron_api_configuration_table *ITRON_api_configuration; } rtems_configuration_table; /* @@ -165,6 +172,9 @@ SAPI_EXTERN rtems_multiprocessing_table *_Configuration_MP_table; #define rtems_configuration_get_posix_api_configuration() \ (_Configuration_Table->POSIX_api_configuration) +#define rtems_configuration_get_itron_api_configuration() \ + (_Configuration_Table->ITRON_api_configuration) + #ifdef __cplusplus } #endif -- cgit v1.2.3