Skip to content

Commit 390f765

Browse files
authored
Merge pull request #80 from nasa/integration-candidate
sample_lib Integration candidate: Caelum-rc4+dev7
2 parents 7b00e67 + 6d56f37 commit 390f765

11 files changed

+205
-223
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ sample_lib implements SAMPLE_Function, as an example for how to build and link a
1111

1212
## Version History
1313

14+
### Development Build: v1.3.0-rc4+dev16
15+
16+
- Update Copyright Headers
17+
- Standardize version.h
18+
- See <https://github.com/nasa/sample_lib/pull/80> and <https://github.com/nasa/cFS/445>
1419
### Development Build: v1.3.0-rc4+dev9
1520

1621
- Apply header guard standard

fsw/public_inc/sample_lib.h

+22-26
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
1-
/*************************************************************************
2-
**
3-
** GSC-18128-1, "Core Flight Executive Version 6.7"
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_lib.h
22-
**
23-
** Purpose:
24-
** Specification for the sample library functions.
25-
**
26-
*************************************************************************/
1+
/************************************************************************
2+
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes”
3+
*
4+
* Copyright (c) 2020 United States Government as represented by the
5+
* Administrator of the National Aeronautics and Space Administration.
6+
* All Rights Reserved.
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
9+
* not use this file except in compliance with the License. You may obtain
10+
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
************************************************************************/
18+
19+
/**
20+
* \file
21+
* Specification for the sample library functions.
22+
*/
2723
#ifndef SAMPLE_LIB_H
2824
#define SAMPLE_LIB_H
2925

fsw/src/sample_lib.c

+22-26
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
1-
/*************************************************************************
2-
**
3-
** GSC-18128-1, "Core Flight Executive Version 6.7"
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_lib.c
22-
**
23-
** Purpose:
24-
** Sample CFS library
25-
**
26-
*************************************************************************/
1+
/************************************************************************
2+
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes”
3+
*
4+
* Copyright (c) 2020 United States Government as represented by the
5+
* Administrator of the National Aeronautics and Space Administration.
6+
* All Rights Reserved.
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
9+
* not use this file except in compliance with the License. You may obtain
10+
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
************************************************************************/
18+
19+
/**
20+
* @file
21+
* Sample CFS library
22+
*/
2723

2824
/*************************************************************************
2925
** Includes

fsw/src/sample_lib_internal.h

+21-27
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
/************************************************************************
2-
**
3-
** GSC-18128-1, "Core Flight Executive Version 6.7"
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_lib_internal.h
22-
**
23-
** Purpose:
24-
** An example of an internal (private) header file for SAMPLE Lib
25-
**
26-
** Notes:
27-
**
28-
*************************************************************************/
2+
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes”
3+
*
4+
* Copyright (c) 2020 United States Government as represented by the
5+
* Administrator of the National Aeronautics and Space Administration.
6+
* All Rights Reserved.
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
9+
* not use this file except in compliance with the License. You may obtain
10+
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
************************************************************************/
18+
19+
/**
20+
* @file
21+
* An example of an internal (private) header file for SAMPLE Lib
22+
*/
2923
#ifndef SAMPLE_LIB_INTERNAL_H
3024
#define SAMPLE_LIB_INTERNAL_H
3125

fsw/src/sample_lib_version.h

+33-30
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,56 @@
11
/************************************************************************
2-
**
3-
** GSC-18128-1, "Core Flight Executive Version 6.7"
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-
*************************************************************************/
22-
23-
/*! @file
24-
* @brief Purpose:
2+
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes”
253
*
26-
* The Sample Lib header file containing version information
4+
* Copyright (c) 2020 United States Government as represented by the
5+
* Administrator of the National Aeronautics and Space Administration.
6+
* All Rights Reserved.
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
9+
* not use this file except in compliance with the License. You may obtain
10+
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
2711
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
************************************************************************/
18+
19+
/**
20+
* @file
21+
* The Sample Lib header file containing version information
2822
*/
2923

3024
#ifndef SAMPLE_LIB_VERSION_H
3125
#define SAMPLE_LIB_VERSION_H
3226

3327
/* Development Build Macro Definitions */
3428

35-
#define SAMPLE_LIB_BUILD_NUMBER 9 /*!< Development Build: Number of commits since baseline */
29+
#define SAMPLE_LIB_BUILD_NUMBER 16 /*!< Development Build: Number of commits since baseline */
3630
#define SAMPLE_LIB_BUILD_BASELINE \
3731
"v1.3.0-rc4" /*!< Development Build: git tag that is the base for the current development */
3832

39-
/* Version Macro Definitions */
40-
41-
#define SAMPLE_LIB_MAJOR_VERSION 1 /*!< @brief ONLY APPLY for OFFICIAL releases. Major version number. */
42-
#define SAMPLE_LIB_MINOR_VERSION 1 /*!< @brief ONLY APPLY for OFFICIAL releases. Minor version number. */
43-
#define SAMPLE_LIB_REVISION 0 /*!< @brief ONLY APPLY for OFFICIAL releases. Revision number. */
33+
/*
34+
* Version Macros, see \ref cfsversions for definitions.
35+
*/
36+
#define SAMPLE_LIB_MAJOR_VERSION 1 /*!< @brief Major version number */
37+
#define SAMPLE_LIB_MINOR_VERSION 1 /*!< @brief Minor version number */
38+
#define SAMPLE_LIB_REVISION 99 /*!< @brief Revision version number. Value of 99 indicates a development version.*/
4439

4540
/*!
4641
* @brief Mission revision.
4742
*
4843
* Set to 0 on OFFICIAL releases, and set to 255 (0xFF) on development versions.
4944
* Values 1-254 are reserved for mission use to denote patches/customizations as needed.
5045
*/
46+
47+
/*!
48+
* @brief Mission revision.
49+
*
50+
* Reserved for mission use to denote patches/customizations as needed.
51+
* Values 1-254 are reserved for mission use to denote patches/customizations as needed. NOTE: Reserving 0 and 0xFF for
52+
* cFS open-source development use (pending resolution of nasa/cFS#440)
53+
*/
5154
#define SAMPLE_LIB_MISSION_REV 0xFF
5255

5356
#define SAMPLE_LIB_STR_HELPER(x) #x /*!< @brief Helper function to concatenate strings from integer macros */

unit-test/coveragetest/coveragetest_sample_lib.c

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
/*
2-
** GSC-18128-1, "Core Flight Executive Version 6.7"
3-
**
4-
** Copyright (c) 2006-2019 United States Government as represented by
5-
** the Administrator of the National Aeronautics and Space Administration.
6-
** All Rights Reserved.
7-
**
8-
** Licensed under the Apache License, Version 2.0 (the "License");
9-
** you may not use this file except in compliance with the License.
10-
** You may obtain a copy of the License at
11-
**
12-
** http://www.apache.org/licenses/LICENSE-2.0
13-
**
14-
** Unless required by applicable law or agreed to in writing, software
15-
** distributed under the License is distributed on an "AS IS" BASIS,
16-
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
** See the License for the specific language governing permissions and
18-
** limitations under the License.
19-
*/
1+
/************************************************************************
2+
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes”
3+
*
4+
* Copyright (c) 2020 United States Government as represented by the
5+
* Administrator of the National Aeronautics and Space Administration.
6+
* All Rights Reserved.
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
9+
* not use this file except in compliance with the License. You may obtain
10+
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
************************************************************************/
2018

2119
/*
2220
** File: coveragetest_sample_lib.c

unit-test/coveragetest/sample_lib_coveragetest_common.h

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
/*
2-
** GSC-18128-1, "Core Flight Executive Version 6.7"
3-
**
4-
** Copyright (c) 2006-2019 United States Government as represented by
5-
** the Administrator of the National Aeronautics and Space Administration.
6-
** All Rights Reserved.
7-
**
8-
** Licensed under the Apache License, Version 2.0 (the "License");
9-
** you may not use this file except in compliance with the License.
10-
** You may obtain a copy of the License at
11-
**
12-
** http://www.apache.org/licenses/LICENSE-2.0
13-
**
14-
** Unless required by applicable law or agreed to in writing, software
15-
** distributed under the License is distributed on an "AS IS" BASIS,
16-
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
** See the License for the specific language governing permissions and
18-
** limitations under the License.
19-
*/
1+
/************************************************************************
2+
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes”
3+
*
4+
* Copyright (c) 2020 United States Government as represented by the
5+
* Administrator of the National Aeronautics and Space Administration.
6+
* All Rights Reserved.
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
9+
* not use this file except in compliance with the License. You may obtain
10+
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
************************************************************************/
2018

2119
/*
2220
** File: sample_lib_coveragetest_common.h

unit-test/inc/OCS_string.h

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
/*
2-
** GSC-18128-1, "Core Flight Executive Version 6.7"
3-
**
4-
** Copyright (c) 2006-2019 United States Government as represented by
5-
** the Administrator of the National Aeronautics and Space Administration.
6-
** All Rights Reserved.
7-
**
8-
** Licensed under the Apache License, Version 2.0 (the "License");
9-
** you may not use this file except in compliance with the License.
10-
** You may obtain a copy of the License at
11-
**
12-
** http://www.apache.org/licenses/LICENSE-2.0
13-
**
14-
** Unless required by applicable law or agreed to in writing, software
15-
** distributed under the License is distributed on an "AS IS" BASIS,
16-
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
** See the License for the specific language governing permissions and
18-
** limitations under the License.
19-
*/
1+
/************************************************************************
2+
* NASA Docket No. GSC-18,719-1, and identified as “core Flight System: Bootes”
3+
*
4+
* Copyright (c) 2020 United States Government as represented by the
5+
* Administrator of the National Aeronautics and Space Administration.
6+
* All Rights Reserved.
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
9+
* not use this file except in compliance with the License. You may obtain
10+
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
************************************************************************/
2018

2119
/*
2220
** File: string.h

0 commit comments

Comments
 (0)