Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:08

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSImplClassic
0005  *
0006  * @brief This source file contains the implementation of
0007  *   rtems_board_support_package() and the definition of ::_RTEMS_version.
0008  */
0009 
0010 /*
0011  *  COPYRIGHT (c) 2003, Ralf Corsepius, Ulm, Germany.
0012  *  COPYRIGHT (c) 2003, On-Line Applications Research Corporation (OAR).
0013  *
0014  *  The license and distribution terms for this file may be
0015  *  found in the file LICENSE in this distribution or at
0016  *  http://www.rtems.org/license/LICENSE.
0017  */
0018 
0019 #include <rtems/version.h>
0020 #include <rtems/score/copyrt.h>
0021 #include <rtems/score/cpu.h>
0022 
0023 #include <bspopts.h>
0024 
0025 #ifndef RTEMS_VERSION
0026 #error "Missing RTEMS_VERSION"
0027 #endif
0028 #ifndef CPU_NAME
0029 #error "Missing CPU_NAME"
0030 #endif
0031 #ifndef CPU_MODEL_NAME
0032 #error "Missing CPU_MODEL_NAME"
0033 #endif
0034 #ifndef RTEMS_BSP
0035 #error "Missing RTEMS_BSP"
0036 #endif
0037 
0038 const char _RTEMS_version[] =
0039   "rtems-" RTEMS_VERSION " (" CPU_NAME "/" CPU_MODEL_NAME "/"
0040   RTEMS_XSTRING( RTEMS_BSP ) ")";
0041 
0042 const char *rtems_board_support_package( void )
0043 {
0044   return RTEMS_XSTRING( RTEMS_BSP );
0045 }