fsfw-example-common/stm32h7/STM32TestTask.h

24 lines
607 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
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;
bool testSpi = true;
2021-07-12 21:21:03 +02:00
};
#endif /* BSP_STM32_BOARDTEST_STM32TESTTASK_H_ */