Skip to content

Commit

Permalink
Merge pull request #67 from jphickey/fix-66-tabledefs
Browse files Browse the repository at this point in the history
Fix #66, remove compiler extensions from tbldefs
  • Loading branch information
dzbaker committed Feb 16, 2023
2 parents a99b890 + cbea300 commit 53bf044
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
7 changes: 3 additions & 4 deletions fsw/tables/hs_amt.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@
#include "hs_tbldefs.h"
#include "cfe_tbl_filedef.h"

static CFE_TBL_FileDef_t CFE_TBL_FileDef
__attribute__((__used__)) = {"HS_Default_AppMon_Tbl", HS_APP_NAME ".AppMon_Tbl", "HS AppMon Table", "hs_amt.tbl",
(sizeof(HS_AMTEntry_t) * HS_MAX_MONITORED_APPS)};
CFE_TBL_FileDef_t CFE_TBL_FileDef = {"HS_AppMon_Tbl", HS_APP_NAME ".AppMon_Tbl", "HS AppMon Table", "hs_amt.tbl",
(sizeof(HS_AMTEntry_t) * HS_MAX_MONITORED_APPS)};

HS_AMTEntry_t HS_Default_AppMon_Tbl[HS_MAX_MONITORED_APPS] = {
HS_AMTEntry_t HS_AppMon_Tbl[HS_MAX_MONITORED_APPS] = {
/* AppName NullTerm CycleCount ActionType */

/* 0 */ {"CFE_ES", 0, 10, HS_AMT_ACT_NOACT},
Expand Down
7 changes: 3 additions & 4 deletions fsw/tables/hs_emt.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@
#include "hs_tbldefs.h"
#include "cfe_tbl_filedef.h"

static CFE_TBL_FileDef_t CFE_TBL_FileDef
__attribute__((__used__)) = {"HS_Default_EventMon_Tbl", HS_APP_NAME ".EventMon_Tbl", "HS EventMon Table",
"hs_emt.tbl", (sizeof(HS_EMTEntry_t) * HS_MAX_MONITORED_EVENTS)};
CFE_TBL_FileDef_t CFE_TBL_FileDef = {"HS_EventMon_Tbl", HS_APP_NAME ".EventMon_Tbl", "HS EventMon Table", "hs_emt.tbl",
(sizeof(HS_EMTEntry_t) * HS_MAX_MONITORED_EVENTS)};

HS_EMTEntry_t HS_Default_EventMon_Tbl[HS_MAX_MONITORED_EVENTS] = {
HS_EMTEntry_t HS_EventMon_Tbl[HS_MAX_MONITORED_EVENTS] = {
/* AppName NullTerm EventID ActionType */

/* 0 */ {"CFE_ES", 0, 10, HS_EMT_ACT_NOACT},
Expand Down
7 changes: 3 additions & 4 deletions fsw/tables/hs_mat.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@
#include "hs_tbldefs.h"
#include "cfe_tbl_filedef.h"

static CFE_TBL_FileDef_t CFE_TBL_FileDef
__attribute__((__used__)) = {"HS_Default_MsgActs_Tbl", HS_APP_NAME ".MsgActs_Tbl", "HS MsgActs Table", "hs_mat.tbl",
(sizeof(HS_MATEntry_t) * HS_MAX_MSG_ACT_TYPES)};
CFE_TBL_FileDef_t CFE_TBL_FileDef = {"HS_MsgActs_Tbl", HS_APP_NAME ".MsgActs_Tbl", "HS MsgActs Table", "hs_mat.tbl",
(sizeof(HS_MATEntry_t) * HS_MAX_MSG_ACT_TYPES)};

HS_MATEntry_t HS_Default_MsgActs_Tbl[HS_MAX_MSG_ACT_TYPES] = {
HS_MATEntry_t HS_MsgActs_Tbl[HS_MAX_MSG_ACT_TYPES] = {
/* EnableState Cooldown Message */

/* 0 */ {HS_MAT_STATE_DISABLED,
Expand Down
7 changes: 3 additions & 4 deletions fsw/tables/hs_xct.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@
#include "hs_tbldefs.h"
#include "cfe_tbl_filedef.h"

static CFE_TBL_FileDef_t CFE_TBL_FileDef
__attribute__((__used__)) = {"HS_Default_ExeCount_Tbl", HS_APP_NAME ".ExeCount_Tbl", "HS ExeCount Table",
"hs_xct.tbl", (sizeof(HS_XCTEntry_t) * HS_MAX_EXEC_CNT_SLOTS)};
CFE_TBL_FileDef_t CFE_TBL_FileDef = {"HS_ExeCount_Tbl", HS_APP_NAME ".ExeCount_Tbl", "HS ExeCount Table",
"hs_xct.tbl", (sizeof(HS_XCTEntry_t) * HS_MAX_EXEC_CNT_SLOTS)};

HS_XCTEntry_t HS_Default_ExeCount_Tbl[HS_MAX_EXEC_CNT_SLOTS] = {
HS_XCTEntry_t HS_ExeCount_Tbl[HS_MAX_EXEC_CNT_SLOTS] = {
/* ResourceName NullTerm ResourceType */

/* 0 */ {"CFE_ES", 0, HS_XCT_TYPE_APP_MAIN},
Expand Down

0 comments on commit 53bf044

Please sign in to comment.