Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/nos3#84-fprime-checkout' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucas9 committed Oct 17, 2024
2 parents 448e025 + c48e5b2 commit ba3a555
Show file tree
Hide file tree
Showing 22 changed files with 927 additions and 0 deletions.
16 changes: 16 additions & 0 deletions fsw/cfs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 2.6.4)
project(CFS_GENERIC_CSS_APP C)

include(../../../ComponentSettings.cmake)

include_directories(public_inc)
include_directories(mission_inc)
include_directories(platform_inc)
include_directories(src)

include_directories(${hwlib_MISSION_DIR}/fsw/public_inc)

aux_source_directory(src APP_SRC_FILES)

# Create the app module
add_cfe_app(generic_css ${APP_SRC_FILES})
22 changes: 22 additions & 0 deletions fsw/cfs/mission_inc/generic_css_perfids.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*******************************************************************************
** File:
** $Id: generic_css_perfids.h $
**
** Purpose:
** Define GENERIC_CSS Performance IDs
**
** Notes:
**
*************************************************************************/
#ifndef _GENERIC_CSS_PERFIDS_H_
#define _GENERIC_CSS_PERFIDS_H_

/*
** define any performance id integer for the app - try to not have this
** id conflict with other apps. Performance IDs are used for cFE performance
** metrics.
*/
#define GENERIC_CSS_PERF_ID 600
#define GENERIC_CSS_DEVICE_PERF_ID 601

#endif /* _GENERIC_CSS_PERFIDS_H_ */
28 changes: 28 additions & 0 deletions fsw/cfs/platform_inc/generic_css_msgids.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/************************************************************************
** File:
** $Id: generic_css_msgids.h $
**
** Purpose:
** Define GENERIC_CSS Message IDs
**
*************************************************************************/
#ifndef _GENERIC_CSS_MSGIDS_H_
#define _GENERIC_CSS_MSGIDS_H_

/*
** CCSDS V1 Command Message IDs (MID) must be 0x18xx
*/
#define GENERIC_CSS_CMD_MID 0x1910

/*
** This MID is for commands telling the app to publish its telemetry message
*/
#define GENERIC_CSS_REQ_HK_MID 0x1911

/*
** CCSDS V1 Telemetry Message IDs must be 0x08xx
*/
#define GENERIC_CSS_HK_TLM_MID 0x0910
#define GENERIC_CSS_DEVICE_TLM_MID 0x0911

#endif /* _GENERIC_CSS_MSGIDS_H_ */
29 changes: 29 additions & 0 deletions fsw/cfs/platform_inc/generic_css_platform_cfg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/************************************************************************
** File:
** $Id: generic_css_platform_cfg.h $
**
** Purpose:
** Define generic_css Platform Configuration Parameters
**
** Notes:
**
*************************************************************************/
#ifndef _GENERIC_CSS_PLATFORM_CFG_H_
#define _GENERIC_CSS_PLATFORM_CFG_H_

/*
** Default GENERIC_CSS Configuration
*/
#ifndef GENERIC_CSS_CFG
/* Notes:
** NOS3 uart requires matching handle and bus number
*/
#define GENERIC_CSS_CFG_STRING "i2c_2"
#define GENERIC_CSS_CFG_HANDLE 2
#define GENERIC_CSS_CFG_BAUDRATE_HZ 1000
#define GENERIC_CSS_CFG_MS_TIMEOUT 250 /* Max 255 */
/* Note: Debug flag disabled (commented out) by default */
//#define GENERIC_CSS_CFG_DEBUG
#endif

#endif /* _GENERIC_CSS_PLATFORM_CFG_H_ */
Loading

0 comments on commit ba3a555

Please sign in to comment.