From 3ff25d594fe62a2bc432694d690ffeca54233cb1 Mon Sep 17 00:00:00 2001 From: zlynch2 Date: Thu, 10 Oct 2024 17:14:36 +0000 Subject: [PATCH] [nasa/nos3] removing unecessary files --- fsw/fprime/device_cfg.h | 15 ------- fsw/fprime/support/CMakeLists.txt | 69 ------------------------------- fsw/fprime/support/device_cfg.h | 15 ------- fsw/fprime/test.cpp | 34 --------------- 4 files changed, 133 deletions(-) delete mode 100644 fsw/fprime/device_cfg.h delete mode 100644 fsw/fprime/support/CMakeLists.txt delete mode 100644 fsw/fprime/support/device_cfg.h delete mode 100644 fsw/fprime/test.cpp diff --git a/fsw/fprime/device_cfg.h b/fsw/fprime/device_cfg.h deleted file mode 100644 index 92234ca3..00000000 --- a/fsw/fprime/device_cfg.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef _SAMPLE_CHECKOUT_DEVICE_CFG_H_ -#define _SAMPLE_CHECKOUT_DEVICE_CFG_H_ - -/* -** SAMPLE Checkout Configuration -*/ -#define SAMPLE_CFG -/* Note: NOS3 uart requires matching handle and bus number */ -#define SAMPLE_CFG_STRING "/dev/usart_16" -#define SAMPLE_CFG_HANDLE 16 -#define SAMPLE_CFG_BAUDRATE_HZ 115200 -#define SAMPLE_CFG_MS_TIMEOUT 250 -#define SAMPLE_CFG_DEBUG - -#endif /* _SAMPLE_CHECKOUT_DEVICE_CFG_H_ */ diff --git a/fsw/fprime/support/CMakeLists.txt b/fsw/fprime/support/CMakeLists.txt deleted file mode 100644 index 979308e5..00000000 --- a/fsw/fprime/support/CMakeLists.txt +++ /dev/null @@ -1,69 +0,0 @@ -cmake_minimum_required(VERSION 2.6.4) - -project (sample_checkout) - -if (NOT DEFINED TGTNAME) - message(FATAL_ERROR "TGTNAME must be defined on the cmake command line (e.g. \"-DTGTNAME=cpu1\")") -endif() - -# if(${TGTNAME} STREQUAL cpu1) -# SET(CMAKE_C_FLAGS_INIT "-m32" CACHE STRING "C Flags required by platform") -# SET(CMAKE_C_FLAGS "-m32" CACHE STRING "C Flags required by platform") -# endif() - -include(../../ComponentSettings.cmake) - -if(${TGTNAME} STREQUAL cpu1) - find_path(_ITC_CMAKE_MODULES_ - NAMES FindITC_Common.cmake - PATHS ${ITC_CMAKE_MODULES} - ${ITC_DEV_ROOT}/cmake/modules - $ENV{ITC_DEV_ROOT}/cmake/modules - /usr/local/cmake/modules - /usr/cmake/modules) - if(NOT _ITC_CMAKE_MODULES_) - message(WARNING "Unable to find ITC CMake Modules") - endif() - set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${_ITC_CMAKE_MODULES_}) - - find_package(NOSENGINE REQUIRED QUIET COMPONENTS common transport client uart can i2c spi) -endif() - -include_directories("./") -include_directories("../fsw/platform_inc") -include_directories("../fsw/src") -include_directories("../../../fsw/apps/hwlib/fsw/public_inc") - -set(sample_checkout_src - sample_checkout.c - ../fsw/src/sample_device.c -) - -if(${TGTNAME} STREQUAL cpu1) - include_directories("../../../fsw/apps/hwlib/sim/inc") - set(sample_checkout_src - ${sample_checkout_src} - ../../../fsw/apps/hwlib/sim/src/libuart.c - ../../../fsw/apps/hwlib/sim/src/libcan.c - ../../../fsw/apps/hwlib/sim/src/libi2c.c - ../../../fsw/apps/hwlib/sim/src/libspi.c - ../../../fsw/apps/hwlib/sim/src/nos_link.c - ) - set(sample_checkout_libs - ${ITC_Common_LIBRARIES} - ${NOSENGINE_LIBRARIES} - ) -endif() -if(${TGTNAME} STREQUAL cpu2) - set(sample_checkout_src - ${sample_checkout_src} - ../../../fsw/apps/hwlib/fsw/linux/libuart.c - ) -endif() - -add_executable(sample_checkout ${sample_checkout_src}) -target_link_libraries(sample_checkout ${sample_checkout_libs}) - -if(${TGTNAME} STREQUAL cpu1) - set_target_properties(sample_checkout PROPERTIES COMPILE_FLAGS " -g" LINK_FLAGS " -g") -endif() diff --git a/fsw/fprime/support/device_cfg.h b/fsw/fprime/support/device_cfg.h deleted file mode 100644 index c28634d3..00000000 --- a/fsw/fprime/support/device_cfg.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef _SAMPLE_CHECKOUT_DEVICE_CFG_H_ -#define _SAMPLE_CHECKOUT_DEVICE_CFG_H_ - -/* -** SAMPLE Checkout Configuration -*/ -#define SAMPLE_CFG -/* Note: NOS3 uart requires matching handle and bus number */ -#define SAMPLE_CFG_STRING "/dev/usart_29" -#define SAMPLE_CFG_HANDLE 29 -#define SAMPLE_CFG_BAUDRATE_HZ 115200 -#define SAMPLE_CFG_MS_TIMEOUT 250 -#define SAMPLE_CFG_DEBUG - -#endif /* _SAMPLE_CHECKOUT_DEVICE_CFG_H_ */ diff --git a/fsw/fprime/test.cpp b/fsw/fprime/test.cpp deleted file mode 100644 index 405b617c..00000000 --- a/fsw/fprime/test.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include - - - -extern "C" -{ -#include "sample_device.h" -} -uart_info_t SampleUart; -SAMPLE_Device_HK_tlm_t SampleHK; -SAMPLE_Device_Data_tlm_t SampleData; -int32_t status = OS_SUCCESS; - - - - -int main() { - - printf("testing we callled this file ZL!!\n"); - - SampleUart.deviceString = SAMPLE_CFG_STRING; - SampleUart.handle = SAMPLE_CFG_HANDLE; - SampleUart.isOpen = PORT_CLOSED; - SampleUart.baud = SAMPLE_CFG_BAUDRATE_HZ; - - sleep(20); - - status = uart_init_port(&SampleUart); - for (int i=0;i<2;i++) status = SAMPLE_CommandDevice(&SampleUart, SAMPLE_DEVICE_NOOP_CMD, 0); - -} - - -