Skip to content

Commit

Permalink
Fix nasa#827, Remove old name and id defines
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Sep 11, 2020
1 parent db82929 commit 587b1b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
5 changes: 1 addition & 4 deletions cmake/arch_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,7 @@ function(add_cfe_tables APP_NAME TBL_SRC_FILES)
# current content of a dependency (rightfully so).
add_custom_command(
OUTPUT "${TABLE_DESTDIR}/${TBLWE}.tbl"
COMMAND ${CMAKE_C_COMPILER} ${TBL_CFLAGS}
-DCFE_PLATFORM_CPU_ID=${${TGT}_PROCESSORID}
-DCFE_PLATFORM_CPU_NAME="${TGT}"
-c -o ${TBLWE}.o ${TBL_SRC}
COMMAND ${CMAKE_C_COMPILER} ${TBL_CFLAGS} -c -o ${TBLWE}.o ${TBL_SRC}
COMMAND ${MISSION_BINARY_DIR}/tools/elf2cfetbl/elf2cfetbl ${TBLWE}.o
DEPENDS ${MISSION_BINARY_DIR}/tools/elf2cfetbl/elf2cfetbl ${TBL_SRC}
WORKING_DIRECTORY ${TABLE_DESTDIR}
Expand Down
9 changes: 2 additions & 7 deletions cmake/sample_defs/cpu1_platform_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@
#ifndef _cfe_platform_cfg_
#define _cfe_platform_cfg_

/*
** Allow reference to CFE_MISSION_SPACECRAFT_ID (see CFE_TBL_VALID_ definitions below)
*/
#include "cfe_mission_cfg.h"

/**
** \cfesbcfg Maximum Number of Unique Message IDs SB Routing Table can hold
**
Expand Down Expand Up @@ -1742,7 +1737,7 @@
** \par Limits
** This value can be any 32 bit unsigned integer.
*/
#define CFE_PLATFORM_TBL_VALID_SCID_1 (CFE_MISSION_SPACECRAFT_ID)
#define CFE_PLATFORM_TBL_VALID_SCID_1 (0x42)
#define CFE_PLATFORM_TBL_VALID_SCID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd'))

/**
Expand Down Expand Up @@ -1776,7 +1771,7 @@
** \par Limits
** This value can be any 32 bit unsigned integer.
*/
#define CFE_PLATFORM_TBL_VALID_PRID_1 (10)
#define CFE_PLATFORM_TBL_VALID_PRID_1 (1)
#define CFE_PLATFORM_TBL_VALID_PRID_2 (CFE_PLATFORM_TBL_U32FROM4CHARS('a', 'b', 'c', 'd'))
#define CFE_PLATFORM_TBL_VALID_PRID_3 0
#define CFE_PLATFORM_TBL_VALID_PRID_4 0
Expand Down
14 changes: 0 additions & 14 deletions cmake/sample_defs/sample_mission_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,6 @@
#define _cfe_mission_cfg_


/**
** \cfemissioncfg Spacecraft ID
**
** \par Description:
** This defines the value that is returned by the call to
** CFE_PSP_GetSpacecraftId.
**
** \par Limits
** The cFE does not place a limit on this configuration paramter.
** CCSDS allocates 8 bits for this field in the standard VCDU.
*/
#define CFE_MISSION_SPACECRAFT_ID 0x42


/**
** \cfemissioncfg cFE SB message format
**
Expand Down

0 comments on commit 587b1b8

Please sign in to comment.