new linux boardtest folder
This commit is contained in:
parent
7c1c2b46af
commit
571606c251
@ -34,7 +34,7 @@
|
|||||||
#include <fsfw/osal/linux/TcUnixUdpPollingTask.h>
|
#include <fsfw/osal/linux/TcUnixUdpPollingTask.h>
|
||||||
|
|
||||||
#if TEST_LIBGPIOD == 1
|
#if TEST_LIBGPIOD == 1
|
||||||
#include "LibgpiodTest.h"
|
#include <linux/boardtest/LibgpiodTest.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void Factory::setStaticFrameworkObjectIds() {
|
void Factory::setStaticFrameworkObjectIds() {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
target_sources(${TARGET_NAME} PRIVATE
|
target_sources(${TARGET_NAME} PRIVATE
|
||||||
LibgpiodTest.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,4 +2,5 @@ add_subdirectory(gpio)
|
|||||||
add_subdirectory(i2c)
|
add_subdirectory(i2c)
|
||||||
add_subdirectory(csp)
|
add_subdirectory(csp)
|
||||||
add_subdirectory(spi)
|
add_subdirectory(spi)
|
||||||
|
add_subdirectory(boardtest)
|
||||||
|
|
||||||
|
10
linux/boardtest/CMakeLists.txt
Normal file
10
linux/boardtest/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
target_sources(${TARGET_NAME} PRIVATE
|
||||||
|
LibgpiodTest.cpp
|
||||||
|
I2cTestClass.cpp
|
||||||
|
SpiTestClass.cpp
|
||||||
|
UartTestClass.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
8
linux/boardtest/I2cTestClass.cpp
Normal file
8
linux/boardtest/I2cTestClass.cpp
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include <linux/boardtest/I2cTestClass.h>
|
||||||
|
|
||||||
|
I2cTestClass::I2cTestClass(object_id_t objectId): TestTask(objectId) {
|
||||||
|
}
|
||||||
|
|
||||||
|
ReturnValue_t I2cTestClass::performPeriodicAction() {
|
||||||
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
|
}
|
17
linux/boardtest/I2cTestClass.h
Normal file
17
linux/boardtest/I2cTestClass.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#ifndef LINUX_BOARDTEST_I2CTESTCLASS_H_
|
||||||
|
#define LINUX_BOARDTEST_I2CTESTCLASS_H_
|
||||||
|
|
||||||
|
#include <test/testtasks/TestTask.h>
|
||||||
|
|
||||||
|
class I2cTestClass: public TestTask {
|
||||||
|
public:
|
||||||
|
I2cTestClass(object_id_t objectId);
|
||||||
|
|
||||||
|
ReturnValue_t performPeriodicAction() override;
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* LINUX_BOARDTEST_I2CTESTCLASS_H_ */
|
8
linux/boardtest/SpiTestClass.cpp
Normal file
8
linux/boardtest/SpiTestClass.cpp
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include <linux/boardtest/SpiTestClass.h>
|
||||||
|
|
||||||
|
SpiTestClass::SpiTestClass(object_id_t objectId): TestTask(objectId) {
|
||||||
|
}
|
||||||
|
|
||||||
|
ReturnValue_t SpiTestClass::performPeriodicAction() {
|
||||||
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
|
}
|
18
linux/boardtest/SpiTestClass.h
Normal file
18
linux/boardtest/SpiTestClass.h
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#ifndef LINUX_BOARDTEST_SPITESTCLASS_H_
|
||||||
|
#define LINUX_BOARDTEST_SPITESTCLASS_H_
|
||||||
|
|
||||||
|
#include <test/testtasks/TestTask.h>
|
||||||
|
|
||||||
|
class SpiTestClass: public TestTask {
|
||||||
|
public:
|
||||||
|
SpiTestClass(object_id_t objectId);
|
||||||
|
|
||||||
|
ReturnValue_t performPeriodicAction() override;
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* LINUX_BOARDTEST_SPITESTCLASS_H_ */
|
8
linux/boardtest/UartTestClass.cpp
Normal file
8
linux/boardtest/UartTestClass.cpp
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include <linux/boardtest/UartTestClass.h>
|
||||||
|
|
||||||
|
UartTestClass::UartTestClass(object_id_t objectId): TestTask(objectId) {
|
||||||
|
}
|
||||||
|
|
||||||
|
ReturnValue_t UartTestClass::performPeriodicAction() {
|
||||||
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
|
}
|
15
linux/boardtest/UartTestClass.h
Normal file
15
linux/boardtest/UartTestClass.h
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#ifndef LINUX_BOARDTEST_UARTTESTCLASS_H_
|
||||||
|
#define LINUX_BOARDTEST_UARTTESTCLASS_H_
|
||||||
|
|
||||||
|
#include <test/testtasks/TestTask.h>
|
||||||
|
|
||||||
|
class UartTestClass: public TestTask {
|
||||||
|
public:
|
||||||
|
UartTestClass(object_id_t objectId);
|
||||||
|
|
||||||
|
ReturnValue_t performPeriodicAction() override;
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* LINUX_BOARDTEST_UARTTESTCLASS_H_ */
|
Loading…
Reference in New Issue
Block a user