refactored fsfw_hal
This commit is contained in:
parent
1f9fcecd98
commit
dcc61873b2
@ -65,11 +65,12 @@ void ObjectFactory::produce(void* args) {
|
|||||||
|
|
||||||
#if OBSW_PERFORM_L3GD20H_TEST == 1
|
#if OBSW_PERFORM_L3GD20H_TEST == 1
|
||||||
|
|
||||||
new SpiComIF(objects::SPI_COM_IF, spi::TransferModes::POLLING);
|
new SpiComIF(objects::SPI_COM_IF, spi::TransferModes::INTERRUPT);
|
||||||
auto spiCookie = new SpiCookie(0, spi::SpiBus::SPI_1, SPI1, 3900000, spi::SpiModes::MODE_3,
|
auto spiCookie = new SpiCookie(0, spi::SpiBus::SPI_1, SPI1, 3900000, spi::SpiModes::MODE_3,
|
||||||
GPIO_PIN_14, GPIOD, 32);
|
GPIO_PIN_14, GPIOD, 32);
|
||||||
auto gyroDevice = new GyroHandlerL3GD20H(objects::SPI_DEVICE_TEST, objects::SPI_COM_IF,
|
auto gyroDevice = new GyroHandlerL3GD20H(objects::SPI_DEVICE_TEST, objects::SPI_COM_IF,
|
||||||
spiCookie);
|
spiCookie);
|
||||||
gyroDevice->setStartUpImmediately();
|
gyroDevice->setStartUpImmediately();
|
||||||
|
gyroDevice->setGoNormalModeAtStartup();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ ReturnValue_t STM32TestTask::performOneShotAction() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void STM32TestTask::performSpiL3gd20hTest() {
|
void STM32TestTask::performSpiL3gd20hTest() {
|
||||||
gyro = new GyroL3GD20H(&spiHandle, spi::TransferModes::POLLING);
|
gyro = new GyroL3GD20H(&spiHandle, spi::TransferModes::DMA);
|
||||||
gyro->initialize();
|
gyro->initialize();
|
||||||
gyro->performOperation();
|
gyro->performOperation();
|
||||||
}
|
}
|
||||||
|
2
fsfw_hal
2
fsfw_hal
@ -1 +1 @@
|
|||||||
Subproject commit 05b64b05a3b5777298b28b2fa2ba544554bb2e3b
|
Subproject commit 8f61c23e624e55e44c3410f0204010559e2bd7d9
|
Reference in New Issue
Block a user