Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample_app Integration candidate: 2021-03-23 #137

Merged
merged 7 commits into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contributing Guide

Please see our [top-level contributing guide](https://github.com/nasa/cFS/blob/main/CONTRIBUTING.md) for more information on how to contribute.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ sample_app is an example for how to build and link an application in cFS. See al

## Version History

### Development Build: 1.2.0-rc1+dev56

- Replaces <> with " in local includes
- Adds CONTRIBUTIING.md that links to the main cFS contributing guide.
- Adds a description for the requirements of command and telemetry Message IDs to explain why the Msg IDs have those requirements in documentation.
- See <https://github.com/nasa/sample_app/pull/137>

### Development Build: 1.2.0-rc1+dev48

- Fix #126, simplify build to use wrappers and interface libs
Expand Down
9 changes: 7 additions & 2 deletions fsw/platform_inc/sample_app_msgids.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,20 @@
** Define Sample App Message IDs
**
** Notes:
**
** Message ID bits relate to the message header based on which version
** of the message id implementation is being used
**
*************************************************************************/
#ifndef _sample_app_msgids_h_
#define _sample_app_msgids_h_

/* The Sample App assumes default configuration which uses V1 of message id implementation */

/* V1 Command Message IDs must be 0x18xx */
#define SAMPLE_APP_CMD_MID 0x1882
#define SAMPLE_APP_SEND_HK_MID 0x1883
#define SAMPLE_APP_HK_TLM_MID 0x0883
/* V1 Telemetry Message IDs must be 0x08xx */
#define SAMPLE_APP_HK_TLM_MID 0x0883

#endif /* _sample_app_msgids_h_ */

Expand Down
2 changes: 1 addition & 1 deletion fsw/src/sample_app_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

/* Development Build Macro Definitions */

#define SAMPLE_APP_BUILD_NUMBER 48 /*!< Development Build: Number of commits since baseline */
#define SAMPLE_APP_BUILD_NUMBER 56 /*!< Development Build: Number of commits since baseline */
#define SAMPLE_APP_BUILD_BASELINE \
"v1.2.0-rc1" /*!< Development Build: git tag that is the base for the current development */

Expand Down
14 changes: 7 additions & 7 deletions unit-test/coveragetest/sample_app_coveragetest_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
* Includes
*/

#include <utassert.h>
#include <uttest.h>
#include <utstubs.h>
#include "utassert.h"
#include "uttest.h"
#include "utstubs.h"

#include <cfe.h>
#include <sample_app_events.h>
#include <sample_app.h>
#include <sample_app_table.h>
#include "cfe.h"
#include "sample_app_events.h"
#include "sample_app.h"
#include "sample_app_table.h"

/*
* Macro to call a function and check its int32 return code
Expand Down
4 changes: 2 additions & 2 deletions unit-test/inc/ut_sample_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
* Necessary to include these here to get the definition of the
* "SAMPLE_APP_Data_t" typedef.
*/
#include <sample_app_events.h>
#include <sample_app.h>
#include "sample_app_events.h"
#include "sample_app.h"

/*
* Allow UT access to the global "SAMPLE_APP_Data" object.
Expand Down