This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
fsfw_example_public/common/stm32_nucleo/STM32TestTask.h

28 lines
612 B
C++

#ifndef BSP_STM32_BOARDTEST_STM32TESTTASK_H_
#define BSP_STM32_BOARDTEST_STM32TESTTASK_H_
#include <test/TestTask.h>
#include "stm32h7xx_hal.h"
#include "stm32h7xx_hal_spi.h"
class GyroL3GD20H;
class STM32TestTask: public TestTask {
public:
STM32TestTask(object_id_t objectId, bool enablePrintout, bool blinkyLed = true);
ReturnValue_t performPeriodicAction() override;
ReturnValue_t performOneShotAction() override;
void performSpiL3gd20hTest();
private:
bool blinkyLed = false;
SPI_HandleTypeDef spiHandle = {};
GyroL3GD20H* gyro = nullptr;
};
#endif /* BSP_STM32_BOARDTEST_STM32TESTTASK_H_ */