wiretapping defines added

This commit is contained in:
Robin Müller 2021-04-01 16:20:10 +02:00
parent 5f288ca4bc
commit c62cdbebcb
3 changed files with 13 additions and 6 deletions

View File

@ -20,11 +20,6 @@ if(NOT LIB_FSFW_NAME)
message(ERROR "LIB_FSFW_NAME needs to be set as a linkable target")
endif()
target_include_directories(${LIB_FSFW_HAL_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
)
add_subdirectory(common)
if(FSFW_HAL_ADD_LINUX)
@ -39,6 +34,10 @@ target_link_libraries(${LIB_FSFW_HAL_NAME} PRIVATE
${LIB_FSFW_NAME}
)
target_include_directories(${LIB_FSFW_HAL_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(NOT DEFINED FSFW_WARNING_FLAGS)
set(FSFW_WARNING_FLAGS

View File

@ -1,7 +1,7 @@
#ifndef LINUX_GPIO_LINUXLIBGPIOIF_H_
#define LINUX_GPIO_LINUXLIBGPIOIF_H_
#include <common/gpio/GpioIF.h>
#include "../../common/gpio/GpioIF.h"
#include <returnvalues/classIds.h>
#include <fsfw/objectmanager/SystemObject.h>

View File

@ -16,6 +16,14 @@
#include <cerrno>
#include <cstring>
#ifndef SPI_SEND_WIRETAPPING
#define SPI_SEND_WIRETAPPING 0
#endif
#ifndef SPI_RECV_WIRETAPPING
#define SPI_RECV_WIRETAPPING 0
#endif
SpiComIF::SpiComIF(object_id_t objectId, GpioIF* gpioComIF): SystemObject(objectId),
gpioComIF(gpioComIF) {
if(gpioComIF == nullptr) {