diff --git a/fsw/platform_inc/sch_lab_table.h b/fsw/platform_inc/sch_lab_table.h index 18f4c22..a01379b 100644 --- a/fsw/platform_inc/sch_lab_table.h +++ b/fsw/platform_inc/sch_lab_table.h @@ -34,36 +34,16 @@ /* ** Defines */ -#define SCH_LAB_END_OF_TABLE 0 -#define SCH_LAB_MAX_SCHEDULE_ENTRIES 32 -#define SCH_TBL_DEFAULT_FILE "/cf/sch_lab_table.tbl" - -#define SCH_MAX_MSG_WORDS 32 - -#ifdef SOFTWARE_BIG_BIT_ORDER -#define SCH_PACK_32BIT(value) \ -(uint16)((value & 0xFFFF0000) >> 16), (uint16)(value & 0x0000FFFF) -#else -#define SCH_PACK_32BIT(value) \ -(uint16)(value & 0x0000FFFF), (uint16)((value & 0xFFFF0000) >> 16) -#endif +#define SCH_TBL_DEFAULT_FILE "/cf/sch_lab_table.tbl" +#define SCH_MAX_MSG_WORDS SCH_LAB_MAX_SCHEDULE_ENTRIES /* -** Typedefs -*/ -typedef struct -{ - CFE_SB_MsgId_t MessageID; /* Message ID for the table entry */ - uint32 PacketRate; /* Rate: Send packet every N ticks */ - CFE_MSG_FcnCode_t FcnCode; /* Command/Function code to set */ - uint16 PayloadLength; /* Length of additional command args */ - uint16 MessageBuffer[SCH_MAX_MSG_WORDS]; /* Command args in 16 bit words */ -} SCH_LAB_ScheduleTableEntry_t; - -typedef struct -{ - uint32 TickRate; /* Ticks per second to configure for timer (0=default) */ - SCH_LAB_ScheduleTableEntry_t Config[SCH_LAB_MAX_SCHEDULE_ENTRIES]; -} SCH_LAB_ScheduleTable_t; + * The EDS defines the table type name as "SchTbl" so it matches + * the runtime table name, but the source code refers to the type + * as SCH_LAB_ScheduleTable_t + * + * This discrepancy can be worked around with a typedef for now + */ +typedef SCH_LAB_SchTbl_t SCH_LAB_ScheduleTable_t; #endif diff --git a/fsw/tables/sch_lab_table.c b/fsw/tables/sch_lab_table.c index bfee7a9..9122a34 100644 --- a/fsw/tables/sch_lab_table.c +++ b/fsw/tables/sch_lab_table.c @@ -52,15 +52,6 @@ #include "lc_msgids.h" #endif - -/* -** Include headers for message IDs here -*/ -#include "ci_lab_msgids.h" -#include "to_lab_msgids.h" - -#include "sample_app_msgids.h" - /* ** SCH Lab schedule table ** When populating this table: