apply auto-formatter
This commit is contained in:
@ -1,33 +1,33 @@
|
||||
#include "STM32TestTask.h"
|
||||
#include "stm32h7xx_nucleo.h"
|
||||
#include "OBSWConfig.h"
|
||||
|
||||
STM32TestTask::STM32TestTask(object_id_t objectId, bool enablePrintout,
|
||||
bool blinkyLed): TestTask(objectId), blinkyLed(blinkyLed) {
|
||||
BSP_LED_Init(LED1);
|
||||
BSP_LED_Init(LED2);
|
||||
BSP_LED_Init(LED3);
|
||||
#include "OBSWConfig.h"
|
||||
#include "stm32h7xx_nucleo.h"
|
||||
|
||||
STM32TestTask::STM32TestTask(object_id_t objectId, bool enablePrintout, bool blinkyLed)
|
||||
: TestTask(objectId), blinkyLed(blinkyLed) {
|
||||
BSP_LED_Init(LED1);
|
||||
BSP_LED_Init(LED2);
|
||||
BSP_LED_Init(LED3);
|
||||
}
|
||||
|
||||
ReturnValue_t STM32TestTask::performPeriodicAction() {
|
||||
if(blinkyLed) {
|
||||
if (blinkyLed) {
|
||||
#if OBSW_ETHERNET_USE_LEDS == 0
|
||||
BSP_LED_Toggle(LED1);
|
||||
BSP_LED_Toggle(LED2);
|
||||
BSP_LED_Toggle(LED1);
|
||||
BSP_LED_Toggle(LED2);
|
||||
#endif
|
||||
BSP_LED_Toggle(LED3);
|
||||
}
|
||||
if(testSpi) {
|
||||
spiTest->performOperation();
|
||||
}
|
||||
return TestTask::performPeriodicAction();
|
||||
BSP_LED_Toggle(LED3);
|
||||
}
|
||||
if (testSpi) {
|
||||
spiTest->performOperation();
|
||||
}
|
||||
return TestTask::performPeriodicAction();
|
||||
}
|
||||
|
||||
ReturnValue_t STM32TestTask::initialize() {
|
||||
if(testSpi) {
|
||||
spiComIF = new SpiComIF(objects::SPI_COM_IF);
|
||||
spiTest = new SpiTest(*spiComIF);
|
||||
|
||||
}
|
||||
return TestTask::initialize();
|
||||
if (testSpi) {
|
||||
spiComIF = new SpiComIF(objects::SPI_COM_IF);
|
||||
spiTest = new SpiTest(*spiComIF);
|
||||
}
|
||||
return TestTask::initialize();
|
||||
}
|
||||
|
Reference in New Issue
Block a user