rtems: Move from <rtems.h> to <rtems/config.h>

Move configuration related declarations and definitions to
<rtems/config.h>.  The goal is to make <rtems.h> an include only header
file.
This commit is contained in:
Sebastian Huber
2020-06-24 10:36:16 +02:00
parent 96ea30f0c9
commit 5353ea89d7
4 changed files with 19 additions and 18 deletions

View File

@@ -62,22 +62,6 @@
extern "C" {
#endif
/**
* @brief Returns the pointer to the RTEMS copyright notice.
*/
const char *rtems_get_copyright_notice(void);
/**
* @brief Returns the pointer to the RTEMS version string.
*/
const char *rtems_get_version_string(void);
/**
* @brief Indicates whether this processor variant has hardware floating point
* support.
*/
#define RTEMS_HAS_HARDWARE_FP CPU_HARDWARE_FP
/**********************************************************************
* CONSTANTS WHICH MAY BE USED IN OBJECT NAME TO ID SEARCHES
**********************************************************************/

View File

@@ -27,6 +27,7 @@
* the configuration table.
*/
#include <rtems/score/cpu.h>
#include <rtems/score/object.h>
#include <rtems/score/isr.h>
#include <rtems/score/memory.h>
@@ -164,6 +165,22 @@ uint32_t rtems_configuration_get_maximum_extensions( void );
#define rtems_configuration_get_maximum_processors() \
(_SMP_Processor_configured_maximum)
/**
* @brief Returns the pointer to the RTEMS copyright notice.
*/
const char *rtems_get_copyright_notice(void);
/**
* @brief Returns the pointer to the RTEMS version string.
*/
const char *rtems_get_version_string(void);
/**
* @brief Indicates whether this processor variant has hardware floating point
* support.
*/
#define RTEMS_HAS_HARDWARE_FP CPU_HARDWARE_FP
#ifdef __cplusplus
}
#endif

View File

@@ -39,7 +39,7 @@
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <rtems.h>
#include <rtems/config.h>
#include <rtems/score/copyrt.h>
const char *rtems_get_copyright_notice( void )

View File

@@ -19,7 +19,7 @@
#include "config.h"
#endif
#include <rtems.h>
#include <rtems/config.h>
#include <rtems/score/copyrt.h>
const char *rtems_get_version_string(void)