diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-09 22:07:23 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-09 22:07:23 +0000 |
commit | 352c9b2035e32e56f10f261d94955d97f4ab0f1c (patch) | |
tree | f433e95ae0ab8d8854ea19b7f4bfab3ffb431726 /c/src/exec/sapi/include/rtems | |
parent | Fixed warning where initialized default POSIX API structure did (diff) | |
download | rtems-352c9b2035e32e56f10f261d94955d97f4ab0f1c.tar.bz2 |
This patch adds the basic framework for the ITRON 3.0 API implementation
for RTEMS.
Diffstat (limited to 'c/src/exec/sapi/include/rtems')
-rw-r--r-- | c/src/exec/sapi/include/rtems/config.h | 18 |
1 files changed, 14 insertions, 4 deletions
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 <rtems/score/object.h> @@ -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 <rtems/posix/config.h> #else - typedef void *posix_api_configuration_table; #endif +#ifdef RTEMS_ITRON_API +#include <itron.h> +#include <rtems/itron/config.h> +#else +typedef void *itron_api_configuration_table; +#endif + #include <rtems/rtems/config.h> /* XXX <rtems/rtems/config.h> 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 |