Changeset 20d472d in rtems


Ignore:
Timestamp:
Jan 31, 2019, 1:45:17 PM (3 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
12075ac3
Parents:
da4ca4d
git-author:
Sebastian Huber <sebastian.huber@…> (01/31/19 13:45:17)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/14/19 12:13:27)
Message:

Add rtems_board_support_package()

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bsps/shared/rtems-version.c

    rda4ca4d r20d472d  
    88 */
    99
     10#include <rtems/version.h>
    1011#include <rtems/system.h>
    1112
     
    2829  "rtems-" RTEMS_VERSION " (" CPU_NAME "/" CPU_MODEL_NAME "/"
    2930  RTEMS_XSTRING( RTEMS_BSP ) ")";
     31
     32const char *rtems_board_support_package( void )
     33{
     34  return RTEMS_XSTRING( RTEMS_BSP );
     35}
  • cpukit/include/rtems/version.h

    rda4ca4d r20d472d  
    6868const char *rtems_version_control_key( void );
    6969
     70/**
     71 * @brief Returns the board support package name.
     72 *
     73 * @return The board support package name.
     74 */
     75const char *rtems_board_support_package( void );
     76
    7077/** @} */
    7178
  • testsuites/sptests/spversion01/init.c

    rda4ca4d r20d472d  
    3030  printf("Revision : %d\n", rtems_version_revision());
    3131  printf("VC Key   : %s\n", rtems_version_control_key());
     32  printf("BSP      : %s\n", rtems_board_support_package());
    3233
    3334  TEST_END();
Note: See TracChangeset for help on using the changeset viewer.