hal update
This commit is contained in:
parent
8ab484d3ac
commit
1f9fcecd98
@ -18,6 +18,10 @@ ReturnValue_t STM32TestTask::performPeriodicAction() {
|
|||||||
#endif
|
#endif
|
||||||
BSP_LED_Toggle(LED3);
|
BSP_LED_Toggle(LED3);
|
||||||
}
|
}
|
||||||
|
if(gyro != nullptr) {
|
||||||
|
gyro->performOperation();
|
||||||
|
}
|
||||||
|
|
||||||
return TestTask::performPeriodicAction();
|
return TestTask::performPeriodicAction();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,8 +35,7 @@ ReturnValue_t STM32TestTask::performOneShotAction() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void STM32TestTask::performSpiL3gd20hTest() {
|
void STM32TestTask::performSpiL3gd20hTest() {
|
||||||
SPI_HandleTypeDef spiHandle = {};
|
gyro = new GyroL3GD20H(&spiHandle, spi::TransferModes::POLLING);
|
||||||
GyroL3GD20H gyroDevice(&spiHandle, spi::TransferModes::POLLING);
|
gyro->initialize();
|
||||||
gyroDevice.initialize();
|
gyro->performOperation();
|
||||||
gyroDevice.performOperation();
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "stm32h7xx_hal.h"
|
#include "stm32h7xx_hal.h"
|
||||||
#include "stm32h7xx_hal_spi.h"
|
#include "stm32h7xx_hal_spi.h"
|
||||||
|
|
||||||
|
class GyroL3GD20H;
|
||||||
|
|
||||||
class STM32TestTask: public TestTask {
|
class STM32TestTask: public TestTask {
|
||||||
public:
|
public:
|
||||||
@ -18,7 +18,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
bool blinkyLed = false;
|
bool blinkyLed = false;
|
||||||
|
SPI_HandleTypeDef spiHandle = {};
|
||||||
|
GyroL3GD20H* gyro = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
2
fsfw_hal
2
fsfw_hal
@ -1 +1 @@
|
|||||||
Subproject commit 92a3f131721da077ede6ef7c34f5837bccc58021
|
Subproject commit 05b64b05a3b5777298b28b2fa2ba544554bb2e3b
|
Reference in New Issue
Block a user