Skip to content

Commit 2a8e764

Browse files
authored
CCB 20191106: Merge #18
Fixes #17 Code reviewed and approved at 20191106 CCB
2 parents 92311e7 + 9c993b7 commit 2a8e764

File tree

4 files changed

+49
-21
lines changed

4 files changed

+49
-21
lines changed

fsw/src/sample_app.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "sample_app_events.h"
3232
#include "sample_app_version.h"
3333
#include "sample_app.h"
34+
#include "sample_table.h"
3435

3536
#include <string.h>
3637

fsw/src/sample_app_msg.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,6 @@ typedef struct
7272

7373
} OS_PACK sample_hk_tlm_t;
7474

75-
/*
76-
** Table structure
77-
*/
78-
typedef struct
79-
{
80-
uint16 Int1;
81-
uint16 Int2;
82-
83-
} SampleTable_t;
84-
8575
#endif /* _sample_app_msg_h_ */
8676

8777
/************************/

fsw/src/sample_table.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,7 @@
2121
*/
2222

2323
#include "cfe_tbl_filedef.h" /* Required to obtain the CFE_TBL_FILEDEF macro definition */
24-
25-
/*
26-
** The following is an example of a data structure the application may have declared
27-
** as the format of their table.
28-
*/
29-
typedef struct
30-
{
31-
uint16 Int1;
32-
uint16 Int2;
33-
34-
} SampleTable_t;
24+
#include "sample_table.h"
3525

3626
/*
3727
** The following is an example of the declaration statement that defines the desired

fsw/src/sample_table.h

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*******************************************************************************
2+
**
3+
** GSC-18128-1, "Core Flight Executive Version 6.6"
4+
**
5+
** Copyright (c) 2006-2019 United States Government as represented by
6+
** the Administrator of the National Aeronautics and Space Administration.
7+
** All Rights Reserved.
8+
**
9+
** Licensed under the Apache License, Version 2.0 (the "License");
10+
** you may not use this file except in compliance with the License.
11+
** You may obtain a copy of the License at
12+
**
13+
** http://www.apache.org/licenses/LICENSE-2.0
14+
**
15+
** Unless required by applicable law or agreed to in writing, software
16+
** distributed under the License is distributed on an "AS IS" BASIS,
17+
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
** See the License for the specific language governing permissions and
19+
** limitations under the License.
20+
**
21+
** File: sample_table.h
22+
**
23+
** Purpose:
24+
** Define sample table
25+
**
26+
** Notes:
27+
**
28+
**
29+
*******************************************************************************/
30+
#ifndef _sample_table_h_
31+
#define _sample_table_h_
32+
33+
/*
34+
** Table structure
35+
*/
36+
typedef struct
37+
{
38+
uint16 Int1;
39+
uint16 Int2;
40+
41+
} SampleTable_t;
42+
43+
#endif /* _sample_table_h_ */
44+
45+
/************************/
46+
/* End of File Comment */
47+
/************************/

0 commit comments

Comments
 (0)