Skip to content

Commit

Permalink
Seed from to_lab 2.2.0.0 code base
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Hageman committed May 16, 2019
1 parent 7b22468 commit f4269a8
Show file tree
Hide file tree
Showing 11 changed files with 1,212 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 2.6.4)
project(CFS_TO_LAB C)

include_directories(fsw/mission_inc)
include_directories(fsw/platform_inc)
include_directories(${ci_lab_MISSION_DIR}/fsw/platform_inc)
include_directories(${sample_app_MISSION_DIR}/fsw/platform_inc)

aux_source_directory(fsw/src APP_SRC_FILES)

# Create the app module
add_cfe_app(to_lab ${APP_SRC_FILES})

Binary file added LICENSE-18128-Apache-2_0.pdf
Binary file not shown.
112 changes: 112 additions & 0 deletions fsw/for_build/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
###############################################################################
# File: CFS Application Makefile
#
# $Id: Makefile 1.5 2009/07/09 10:41:16GMT-05:00 rmcgraw Exp $
#
# $Log: Makefile $
# Revision 1.5 2009/07/09 10:41:16GMT-05:00 rmcgraw
# DCR8291:1 Changed CFE_MISSION_INC to CFS_MISSION_INC and added log if needed
#
###############################################################################
#
# Subsystem produced by this makefile.
#
APPTARGET = to_lab

#
# Entry Point for task
#
ENTRY_PT = TO_Lab_AppMain

#
# Object files required to build subsystem.
#
OBJS = to_lab_app.o

#
# Source files required to build subsystem; used to generate dependencies.
# As long as there are no assembly files this can be automated.
#
SOURCES = $(OBJS:.o=.c)


##
## Specify extra C Flags needed to build this subsystem
##
LOCAL_COPTS =


##
## EXEDIR is defined here, just in case it needs to be different for a custom
## build
##
EXEDIR=../exe

##
## Certain OSs and Application Loaders require the following option for
## Shared libraries. Currently only needed for vxWorks 5.5 and RTEMS.
## For each shared library that this app depends on, you need to have an
## entry like the following:
## -R../tst_lib/tst_lib.elf
##
SHARED_LIB_LINK =

########################################################################
# Should not have to change below this line, except for customized
# Mission and cFE directory structures
########################################################################

#
# Set build type to CFE_APP. This allows us to
# define different compiler flags for the cFE Core and Apps.
#
BUILD_TYPE = CFE_APP

##
## Include all necessary cFE make rules
## Any of these can be copied to a local file and
## changed if needed.
##
##
## cfe-config.mak contains PSP and OS selection
##
include ../cfe/cfe-config.mak
##
## debug-opts.mak contains debug switches
##
include ../cfe/debug-opts.mak
##
## compiler-opts.mak contains compiler definitions and switches/defines
##
include $(CFE_PSP_SRC)/$(PSP)/make/compiler-opts.mak

##
## Setup the include path for this subsystem
## The OS specific includes are in the build-rules.make file
##
## If this subsystem needs include files from another app, add the path here.
##
INCLUDE_PATH = \
-I$(OSAL_SRC)/inc \
-I$(CFE_CORE_SRC)/inc \
-I$(CFE_PSP_SRC)/inc \
-I$(CFE_PSP_SRC)/$(PSP)/inc \
-I$(CFS_APP_SRC)/inc \
-I$(CFS_APP_SRC)/$(APPTARGET)/fsw/src \
-I$(CFS_MISSION_INC) \
-I../cfe/inc \
-I../inc

##
## Define the VPATH make variable.
## This can be modified to include source from another directory.
## If there is no corresponding app in the cfs-apps directory, then this can be discarded, or
## if the mission chooses to put the src in another directory such as "src", then that can be
## added here as well.
##
VPATH = $(CFS_APP_SRC)/$(APPTARGET)/fsw/src

##
## Include the common make rules for building a cFE Application
##
include $(CFE_CORE_SRC)/make/app-rules.mak
49 changes: 49 additions & 0 deletions fsw/mission_inc/to_lab_perfids.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/************************************************************************
**
** GSC-18128-1, "Core Flight Executive Version 6.6"
**
** Copyright (c) 2006-2019 United States Government as represented by
** the Administrator of the National Aeronautics and Space Administration.
** All Rights Reserved.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http:https://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
**
** File:
**
** Purpose:
** Define TO Lab Performance IDs
**
** Notes:
**
** $Log: to_lab_perfids.h $
** Revision 1.3 2010/09/20 12:28:05GMT-05:00 wmoleski
** Modified the CI_LAB, SCH_LAB and TO_LAB applications to use unique message IDs and Pipe Names. The "_LAB"
** was added to all definitions so that a mission can use these "Lab" apps as well as their own mission apps together.
** Revision 1.2 2008/04/30 14:43:01EDT rjmcgraw
** Member moved from to_lab_perfids.h in project c:/MKSDATA/MKS-REPOSITORY/CFS-REPOSITORY/to_lab/fsw/platform_inc/project.pj to to_lab_perfids.h in project c:/MKSDATA/MKS-REPOSITORY/CFS-REPOSITORY/to_lab/fsw/mission_inc/project.pj.
** Revision 1.1 2008/04/30 13:43:01ACT rjmcgraw
** Initial revision
** Member added to project c:/MKSDATA/MKS-REPOSITORY/CFS-REPOSITORY/to_lab/fsw/platform_inc/project.pj
**
*************************************************************************/
#ifndef _to_lab_perfids_h_
#define _to_lab_perfids_h_

#define TO_MAIN_TASK_PERF_ID 22
#define TO_SOCKET_SEND_PERF_ID 23

#endif /* _to_lab_perfids_h_ */

/************************/
/* End of File Comment */
/************************/
51 changes: 51 additions & 0 deletions fsw/platform_inc/to_lab_msgids.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/************************************************************************
**
** GSC-18128-1, "Core Flight Executive Version 6.6"
**
** Copyright (c) 2006-2019 United States Government as represented by
** the Administrator of the National Aeronautics and Space Administration.
** All Rights Reserved.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http:https://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
**
** File:
**
** Purpose:
** Define TO Lab Message IDs
**
** Notes:
**
** $Log: to_lab_msgids.h $
** Revision 1.2 2010/09/20 12:28:05GMT-05:00 wmoleski
** Modified the CI_LAB, SCH_LAB and TO_LAB applications to use unique message IDs and Pipe Names. The "_LAB"
** was added to all definitions so that a mission can use these "Lab" apps as well as their own mission apps together.
** Revision 1.1 2008/04/30 14:42:40EDT rjmcgraw
** Initial revision
** Member added to project c:/MKSDATA/MKS-REPOSITORY/CFS-REPOSITORY/to_lab/fsw/platform_inc/project.pj
**
*************************************************************************/
#ifndef _to_lab_msgids_h_
#define _to_lab_msgids_h_


#define TO_LAB_CMD_MID 0x1880
#define TO_LAB_SEND_HK_MID 0x1881

#define TO_LAB_HK_TLM_MID 0x0880
#define TO_LAB_DATA_TYPES_MID 0x0881

#endif /* _to_lab_msgids_h_ */

/************************/
/* End of File Comment */
/************************/
93 changes: 93 additions & 0 deletions fsw/platform_inc/to_lab_sub_table.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/************************************************************************
**
** GSC-18128-1, "Core Flight Executive Version 6.6"
**
** Copyright (c) 2006-2019 United States Government as represented by
** the Administrator of the National Aeronautics and Space Administration.
** All Rights Reserved.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http:https://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
**
** File: to_sub_table.h
**
** Purpose:
** Define TO Lab CPU specific subscription table
**
** Notes:
**
** $Log: to_lab_sub_table.h $
** Revision 1.3 2014/07/16 14:44:45GMT-05:00 acudmore
** Member renamed from to_sub_table.h to to_lab_sub_table.h in project c:/MKSDATA/MKS-REPOSITORY/CFS-REPOSITORY/to_lab/fsw/platform_inc/project.pj.
** Revision 1.2 2014/07/16 14:44:45ACT acudmore
** Updated TO_LAB subscription table header file ( comments, clean up )
**
*************************************************************************/

/*
** Add the proper include file for the message IDs below
*/
#include "cfe_msgids.h"

/*
** Common CFS app includes below are commented out
*/
#include "ci_lab_msgids.h"

#include "sample_app_msgids.h"

#if 0
#include "hs_msgids.h"
#include "fm_msgids.h"
#include "sc_msgids.h"
#include "ds_msgids.h"
#include "lc_msgids.h"
#endif

static TO_subsciption_t TO_SubTable[] =
{
/* CFS App Subscriptions */
{TO_LAB_HK_TLM_MID, {0,0}, 4},
{TO_LAB_DATA_TYPES_MID, {0,0}, 4},
{CI_LAB_HK_TLM_MID, {0,0}, 4},
{SAMPLE_APP_HK_TLM_MID, {0,0}, 4},

#if 0
/* Add these if needed */
{HS_HK_TLM_MID, {0,0}, 4},
{FM_HK_TLM_MID, {0,0}, 4},
{SC_HK_TLM_MID, {0,0}, 4},
{DS_HK_TLM_MID, {0,0}, 4},
{LC_HK_TLM_MID, {0,0}, 4},
#endif
/* cFE Core subsciptions */
{CFE_ES_HK_TLM_MID, {0,0}, 4},
{CFE_EVS_HK_TLM_MID, {0,0}, 4},
{CFE_SB_HK_TLM_MID, {0,0}, 4},
{CFE_TBL_HK_TLM_MID, {0,0}, 4},
{CFE_TIME_HK_TLM_MID, {0,0}, 4},
{CFE_TIME_DIAG_TLM_MID, {0,0}, 4},
{CFE_SB_STATS_TLM_MID, {0,0}, 4},
{CFE_TBL_REG_TLM_MID, {0,0}, 4},
{CFE_EVS_EVENT_MSG_MID, {0,0}, 32},
{CFE_ES_SHELL_TLM_MID, {0,0}, 32},
{CFE_ES_APP_TLM_MID, {0,0}, 4},
{CFE_ES_MEMSTATS_TLM_MID,{0,0}, 4},

{TO_UNUSED, {0,0}, 0},
{TO_UNUSED, {0,0}, 0},
{TO_UNUSED, {0,0}, 0}
};

/************************
** End of File Comment **
************************/
Loading

0 comments on commit f4269a8

Please sign in to comment.