Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup RTEMSImplClassic |
---|
5 | * |
---|
6 | * @brief This source file contains the implementation of |
---|
7 | * rtems_board_support_package() and the definition of ::_RTEMS_version. |
---|
8 | */ |
---|
9 | |
---|
10 | /* |
---|
11 | * COPYRIGHT (c) 2003, Ralf Corsepius, Ulm, Germany. |
---|
12 | * COPYRIGHT (c) 2003, On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.org/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #include <rtems/version.h> |
---|
20 | #include <rtems/score/copyrt.h> |
---|
21 | #include <rtems/score/cpu.h> |
---|
22 | |
---|
23 | #include <bspopts.h> |
---|
24 | |
---|
25 | #ifndef RTEMS_VERSION |
---|
26 | #error "Missing RTEMS_VERSION" |
---|
27 | #endif |
---|
28 | #ifndef CPU_NAME |
---|
29 | #error "Missing CPU_NAME" |
---|
30 | #endif |
---|
31 | #ifndef CPU_MODEL_NAME |
---|
32 | #error "Missing CPU_MODEL_NAME" |
---|
33 | #endif |
---|
34 | #ifndef RTEMS_BSP |
---|
35 | #error "Missing RTEMS_BSP" |
---|
36 | #endif |
---|
37 | |
---|
38 | const char _RTEMS_version[] = |
---|
39 | "rtems-" RTEMS_VERSION " (" CPU_NAME "/" CPU_MODEL_NAME "/" |
---|
40 | RTEMS_XSTRING( RTEMS_BSP ) ")"; |
---|
41 | |
---|
42 | const char *rtems_board_support_package( void ) |
---|
43 | { |
---|
44 | return RTEMS_XSTRING( RTEMS_BSP ); |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.