The Version API provides functions to return the version or parts of the version of RTEMS you are using.
More...
|
file | version.c |
| Creates the version strings from the various pieces of version information. The main version number is part of the build system and is stamped into rtems/score/cpuopts.h. The version control key string is extracted from the version control tool when the code is being built and is updated if it has changed. The key may indicate there are local modification.
|
|
The Version API provides functions to return the version or parts of the version of RTEMS you are using.
◆ rtems_board_support_package()
const char* rtems_board_support_package |
( |
void |
| ) |
|
Returns the board support package name.
- Returns
- The board support package name.
Definition at line 33 of file rtems-version.c.
◆ rtems_version()
const char* rtems_version |
( |
void |
| ) |
|
Returns the version string.
- Return values
-
text | The version as a string. |
Definition at line 32 of file version.c.
◆ rtems_version_control_key()
const char* rtems_version_control_key |
( |
void |
| ) |
|
Returns the version control key for the current version of code that has been built.
The key is specific to the version control system being used and allows the built version to be identified.
Use rtems_version_control_key_is_valid() to check if the version control key is valid.
- Returns
- The version control key.
Definition at line 56 of file version.c.
◆ rtems_version_control_key_is_valid()
static bool rtems_version_control_key_is_valid |
( |
const char * |
key | ) |
|
|
inlinestatic |
Returns true, if the version control key is valid, otherwise false.
- Return values
-
true | The version control key is valid. |
false | Otherwise. |
Definition at line 83 of file version.h.
◆ rtems_version_major()
int rtems_version_major |
( |
void |
| ) |
|
Returns the version's major number.
- Return values
-
int | The version's major number. |
Definition at line 41 of file version.c.
◆ rtems_version_minor()
int rtems_version_minor |
( |
void |
| ) |
|
Returns the version's minor number.
- Return values
-
int | The version's minor number. |
Definition at line 46 of file version.c.
◆ rtems_version_revision()
int rtems_version_revision |
( |
void |
| ) |
|
Returns the version's revision number.
- Return values
-
int | The version's revision number. |
Definition at line 51 of file version.c.