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 c460ba5 + 599d800 commit 9e96110
Show file tree
Hide file tree
Showing 22 changed files with 991 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_EPS_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_eps ${APP_SRC_FILES})
21 changes: 21 additions & 0 deletions fsw/cfs/mission_inc/generic_eps_perfids.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*******************************************************************************
** File:
** $Id: generic_eps_perfids.h $
**
** Purpose:
** Define GENERIC_EPS Performance IDs
**
** Notes:
**
*************************************************************************/
#ifndef _GENERIC_EPS_PERFIDS_H_
#define _GENERIC_EPS_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_EPS_PERF_ID 401

#endif /* _GENERIC_EPS_PERFIDS_H_ */
27 changes: 27 additions & 0 deletions fsw/cfs/platform_inc/generic_eps_msgids.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/************************************************************************
** File:
** $Id: generic_eps_msgids.h $
**
** Purpose:
** Define GENERIC_EPS Message IDs
**
*************************************************************************/
#ifndef _GENERIC_EPS_MSGIDS_H_
#define _GENERIC_EPS_MSGIDS_H_

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

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

/*
** CCSDS V1 Telemetry Message IDs must be 0x08xx
*/
#define GENERIC_EPS_HK_TLM_MID 0x091A

#endif /* _GENERIC_EPS_MSGIDS_H_ */
27 changes: 27 additions & 0 deletions fsw/cfs/platform_inc/generic_eps_platform_cfg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/************************************************************************
** File:
** $Id: generic_eps_platform_cfg.h $
**
** Purpose:
** Define generic_eps Platform Configuration Parameters
**
** Notes:
**
*************************************************************************/
#ifndef _GENERIC_EPS_PLATFORM_CFG_H_
#define _GENERIC_EPS_PLATFORM_CFG_H_

/*
** Default GENERIC_EPS Configuration
*/
#ifndef GENERIC_EPS_CFG
#define GENERIC_EPS_CFG
#define GENERIC_EPS_CFG_I2C_HANDLE 1
#define GENERIC_EPS_CFG_I2C_SPEED 1000
#define GENERIC_EPS_CFG_I2C_ADDRESS 0x2B // 7-bit address
#define GENERIC_EPS_CFG_I2C_TIMEOUT 10
/* Note: Debug flag disabled (commented out) by default */
//#define GENERIC_EPS_CFG_DEBUG
#endif

#endif /* _GENERIC_EPS_PLATFORM_CFG_H_ */
Loading

0 comments on commit 9e96110

Please sign in to comment.