fsfw-example-common/stm32h7/STM32TestTask.h

26 lines
586 B
C
Raw Normal View History

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
class STM32TestTask: public TestTask {
public:
STM32TestTask(object_id_t objectId, bool enablePrintout, bool blinkyLed = true);
2021-10-27 18:38:47 +02:00
ReturnValue_t initialize() override;
2021-07-12 21:21:03 +02:00
ReturnValue_t performPeriodicAction() override;
private:
2021-10-27 18:38:47 +02:00
SpiComIF* spiComIF = nullptr;
SpiTest* spiTest = nullptr;
2021-07-12 21:21:03 +02:00
bool blinkyLed = false;
2021-10-27 18:38:47 +02:00
bool testSpi = true;
2021-07-12 21:21:03 +02:00
};
#endif /* BSP_STM32_BOARDTEST_STM32TESTTASK_H_ */