Skip to content

Commit 92baf07

Browse files
authored
Merge pull request #483 from nasa/draco-integration
Open Source Draco Release
2 parents c6fe5f4 + deb508e commit 92baf07

65 files changed

Lines changed: 1654 additions & 1106 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-documentation.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@ name: Build and Deploy Documentation
22

33
on:
44
push:
5+
branches:
6+
- dev
7+
- main
58
pull_request:
9+
types:
10+
- opened
11+
- reopened
12+
- synchronize
13+
workflow_dispatch:
614

715
jobs:
816
build-documentation:

.github/workflows/build-run-app.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@ name: Build and Run
22

33
on:
44
push:
5+
branches:
6+
- dev
7+
- main
58
pull_request:
9+
types:
10+
- opened
11+
- reopened
12+
- synchronize
13+
workflow_dispatch:
614

715
jobs:
816
build-run:

.github/workflows/codeql-build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@ name: CodeQl Analysis
22

33
on:
44
push:
5+
branches:
6+
- dev
7+
- main
58
pull_request:
6-
9+
types:
10+
- opened
11+
- reopened
12+
- synchronize
13+
workflow_dispatch:
714

815
jobs:
916
codeql:
1017
name: Codeql Analysis
1118
uses: nasa/cFS/.github/workflows/codeql-reusable.yml@main
1219
with:
13-
component-path: apps/cf
20+
component-path: apps/cf
1421
prep: 'make prep; make -C build/tools/elf2cfetbl'
1522
make: 'make -C build/native/default_cpu1/apps/cf'
1623
setup: |

.github/workflows/format-check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ name: Format Check
22

33
# Run on all push and pull requests
44
on:
5-
push:
65
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- synchronize
710

811
jobs:
912
format-check:

.github/workflows/static-analysis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@ name: Static Analysis
33
# Run on all push and pull requests
44
on:
55
push:
6+
branches:
7+
- dev
8+
- main
69
pull_request:
10+
types:
11+
- opened
12+
- reopened
13+
- synchronize
14+
workflow_dispatch:
715

816
jobs:
917
static-analysis:

.github/workflows/unit-test-coverage.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@ name: Unit Test and Coverage
22

33
on:
44
push:
5+
branches:
6+
- dev
7+
- main
58
pull_request:
9+
types:
10+
- opened
11+
- reopened
12+
- synchronize
13+
workflow_dispatch:
614

715
jobs:
816
unit-test-coverage:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set(APP_SRC_FILES
1818
fsw/src/cf_utils.c
1919
)
2020

21-
if (CFE_EDS_ENABLED_BUILD)
21+
if (CFE_EDS_ENABLED)
2222
list(APPEND APP_SRC_FILES fsw/src/cf_eds_dispatch.c)
2323
else()
2424
list(APPEND APP_SRC_FILES fsw/src/cf_dispatch.c)

arch_build.cmake

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,10 @@
1010

1111
# The list of header files that control the CF configuration
1212
set(CF_PLATFORM_CONFIG_FILE_LIST
13-
cf_internal_cfg.h
13+
cf_internal_cfg_values.h
14+
cf_msgid_values.h
1415
cf_msgids.h
1516
cf_platform_cfg.h
1617
)
1718

18-
# Create wrappers around the all the config header files
19-
# This makes them individually overridable by the missions, without modifying
20-
# the distribution default copies
21-
foreach(CF_CFGFILE ${CF_PLATFORM_CONFIG_FILE_LIST})
22-
get_filename_component(CFGKEY "${CF_CFGFILE}" NAME_WE)
23-
if (DEFINED CF_CFGFILE_SRC_${CFGKEY})
24-
set(DEFAULT_SOURCE GENERATED_FILE "${CF_CFGFILE_SRC_${CFGKEY}}")
25-
else()
26-
set(DEFAULT_SOURCE FALLBACK_FILE "${CMAKE_CURRENT_LIST_DIR}/config/default_${CF_CFGFILE}")
27-
endif()
28-
generate_config_includefile(
29-
FILE_NAME "${CF_CFGFILE}"
30-
${DEFAULT_SOURCE}
31-
)
32-
endforeach()
19+
generate_configfile_set(${CF_PLATFORM_CONFIG_FILE_LIST})

config/default_cf_extern_typedefs.h

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,12 @@
2323
* Declarations and prototypes for cf_extern_typedefs module
2424
*/
2525

26-
#ifndef CF_EXTERN_TYPEDEFS_H
27-
#define CF_EXTERN_TYPEDEFS_H
26+
#ifndef DEFAULT_CF_EXTERN_TYPEDEFS_H
27+
#define DEFAULT_CF_EXTERN_TYPEDEFS_H
2828

2929
/* constants such as CF_FILENAME_MAX_LEN are in mission_cfg.h */
3030
#include "cf_mission_cfg.h"
3131

32-
#ifdef CFE_EDS_ENABLED_BUILD
33-
34-
#include "cf_eds_typedefs.h"
35-
36-
typedef CF_QueueIdx_Enum_t CF_QueueIdx_t;
37-
#define CF_QueueIdx_NUM (1 + EdsDataType_CF_QueueIdx_t_MAX)
38-
#define CF_GetSet_ValueID_MAX (1 + EdsDataType_CF_GetSet_ValueID_t_MAX)
39-
40-
typedef CF_EntityId_Atom_t CF_EntityId_t;
41-
typedef CF_TransactionSeq_Atom_t CF_TransactionSeq_t;
42-
43-
typedef CF_CFDP_Enum_t CF_CFDP_Class_t;
44-
typedef CF_GetSet_ValueID_Enum_t CF_GetSet_ValueID_t;
45-
46-
typedef EdsDataType_BASE_TYPES_PathName_t CF_PathName_t;
47-
typedef EdsDataType_BASE_TYPES_FileName_t CF_FileName_t;
48-
49-
#define CF_FILENAME_MAX_NAME ((int)sizeof(CF_FileName_t))
50-
#define CF_FILENAME_MAX_LEN ((int)sizeof(CF_PathName_t))
51-
52-
#else
53-
5432
/**
5533
* @brief Values for CFDP file transfer class
5634
*
@@ -134,6 +112,4 @@ typedef uint32 CF_EntityId_t;
134112
*/
135113
typedef uint32 CF_TransactionSeq_t;
136114

137-
#endif
138-
139115
#endif /* CF_EXTERN_TYPEDEFS_H */

config/default_cf_fcncode_values.h

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/************************************************************************
2+
* NASA Docket No. GSC-18,447-1, and identified as “CFS CFDP (CF)
3+
* Application version 3.0.0”
4+
*
5+
* Copyright (c) 2019 United States Government as represented by the
6+
* Administrator of the National Aeronautics and Space Administration.
7+
* All Rights Reserved.
8+
*
9+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
10+
* not use this file except in compliance with the License. You may obtain
11+
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
************************************************************************/
19+
20+
/**
21+
* @file
22+
* Specification for the CFS CFDP (CF) command function codes
23+
*
24+
* @note
25+
* This file should be strictly limited to the command/function code (CC)
26+
* macro definitions. Other definitions such as enums, typedefs, or other
27+
* macros should be placed in the msgdefs.h or msg.h files.
28+
*/
29+
#ifndef DEFAULT_CF_FCNCODES_H
30+
#define DEFAULT_CF_FCNCODES_H
31+
32+
/************************************************************************
33+
* Macro Definitions
34+
************************************************************************/
35+
36+
#define CF_CCVAL(x) CF_FunctionCode_##x
37+
38+
enum CF_FunctionCode_
39+
{
40+
CF_FunctionCode_NOOP = 0,
41+
CF_FunctionCode_RESET_COUNTERS = 1,
42+
CF_FunctionCode_TX_FILE = 2,
43+
CF_FunctionCode_PLAYBACK_DIR = 3,
44+
CF_FunctionCode_FREEZE = 4,
45+
CF_FunctionCode_THAW = 5,
46+
CF_FunctionCode_SUSPEND = 6,
47+
CF_FunctionCode_RESUME = 7,
48+
CF_FunctionCode_CANCEL = 8,
49+
CF_FunctionCode_ABANDON = 9,
50+
CF_FunctionCode_SET_PARAM = 10,
51+
CF_FunctionCode_GET_PARAM = 11,
52+
CF_FunctionCode_WRITE_QUEUE = 15,
53+
CF_FunctionCode_ENABLE_DEQUEUE = 16,
54+
CF_FunctionCode_DISABLE_DEQUEUE = 17,
55+
CF_FunctionCode_ENABLE_DIR_POLLING = 18,
56+
CF_FunctionCode_DISABLE_DIR_POLLING = 19,
57+
CF_FunctionCode_PURGE_QUEUE = 21,
58+
CF_FunctionCode_ENABLE_ENGINE = 22,
59+
CF_FunctionCode_DISABLE_ENGINE = 23,
60+
};
61+
62+
#endif

0 commit comments

Comments
 (0)