extended STM32 test task
This commit is contained in:
parent
473461a61d
commit
cf97d690fe
@ -17,5 +17,17 @@ ReturnValue_t STM32TestTask::performPeriodicAction() {
|
|||||||
#endif
|
#endif
|
||||||
BSP_LED_Toggle(LED3);
|
BSP_LED_Toggle(LED3);
|
||||||
}
|
}
|
||||||
|
if(testSpi) {
|
||||||
|
spiTest->performOperation();
|
||||||
|
}
|
||||||
return TestTask::performPeriodicAction();
|
return TestTask::performPeriodicAction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ReturnValue_t STM32TestTask::initialize() {
|
||||||
|
if(testSpi) {
|
||||||
|
spiComIF = new SpiComIF(objects::SPI_COM_IF);
|
||||||
|
spiTest = new SpiTest(*spiComIF);
|
||||||
|
|
||||||
|
}
|
||||||
|
return TestTask::initialize();
|
||||||
|
}
|
||||||
|
@ -1,16 +1,22 @@
|
|||||||
#ifndef BSP_STM32_BOARDTEST_STM32TESTTASK_H_
|
#ifndef BSP_STM32_BOARDTEST_STM32TESTTASK_H_
|
||||||
#define BSP_STM32_BOARDTEST_STM32TESTTASK_H_
|
#define BSP_STM32_BOARDTEST_STM32TESTTASK_H_
|
||||||
|
|
||||||
|
#include "bsp_stm32h7_freertos/boardtest/SpiTest.h"
|
||||||
#include "fsfw_tests/integration/task/TestTask.h"
|
#include "fsfw_tests/integration/task/TestTask.h"
|
||||||
|
|
||||||
class STM32TestTask: public TestTask {
|
class STM32TestTask: public TestTask {
|
||||||
public:
|
public:
|
||||||
STM32TestTask(object_id_t objectId, bool enablePrintout, bool blinkyLed = true);
|
STM32TestTask(object_id_t objectId, bool enablePrintout, bool blinkyLed = true);
|
||||||
|
|
||||||
|
ReturnValue_t initialize() override;
|
||||||
ReturnValue_t performPeriodicAction() override;
|
ReturnValue_t performPeriodicAction() override;
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
SpiComIF* spiComIF = nullptr;
|
||||||
|
SpiTest* spiTest = nullptr;
|
||||||
|
|
||||||
bool blinkyLed = false;
|
bool blinkyLed = false;
|
||||||
|
bool testSpi = true;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user