#ifndef BSP_STM32_BOARDTEST_STM32TESTTASK_H_ #define BSP_STM32_BOARDTEST_STM32TESTTASK_H_ #include #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_ */