2021-07-12 21:21:03 +02:00
|
|
|
#ifndef BSP_STM32_BOARDTEST_STM32TESTTASK_H_
|
|
|
|
#define BSP_STM32_BOARDTEST_STM32TESTTASK_H_
|
|
|
|
|
2021-10-27 18:38:47 +02:00
|
|
|
#include "bsp_stm32h7_freertos/boardtest/SpiTest.h"
|
2021-10-27 17:09:25 +02:00
|
|
|
#include "fsfw_tests/integration/task/TestTask.h"
|
2021-07-12 21:21:03 +02:00
|
|
|
|
2022-05-05 20:55:28 +02:00
|
|
|
class STM32TestTask : public TestTask {
|
2022-05-22 15:30:08 +02:00
|
|
|
public:
|
|
|
|
STM32TestTask(object_id_t objectId, bool enablePrintout,
|
|
|
|
bool blinkyLed = true);
|
2021-07-12 21:21:03 +02:00
|
|
|
|
2022-05-05 20:55:28 +02:00
|
|
|
ReturnValue_t initialize() override;
|
|
|
|
ReturnValue_t performPeriodicAction() override;
|
2021-07-12 21:21:03 +02:00
|
|
|
|
2022-05-22 15:30:08 +02:00
|
|
|
private:
|
|
|
|
SpiComIF *spiComIF = nullptr;
|
|
|
|
SpiTest *spiTest = nullptr;
|
2021-07-12 21:21:03 +02:00
|
|
|
|
2022-05-05 20:55:28 +02:00
|
|
|
bool blinkyLed = false;
|
2022-05-29 17:34:43 +02:00
|
|
|
bool testSpi = false;
|
2021-07-12 21:21:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* BSP_STM32_BOARDTEST_STM32TESTTASK_H_ */
|