refactored fsfw_hal

This commit is contained in:
muellerr committed 2021-06-10 19:09:56 +02:00
1 parent 1f9fcecd98
commit dcc61873b2
3 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -65,11 +65,12 @@ void ObjectFactory::produce(void* args) {
#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,
GPIO_PIN_14, GPIOD, 32);
auto gyroDevice = new GyroHandlerL3GD20H(objects::SPI_DEVICE_TEST, objects::SPI_COM_IF,
spiCookie);
gyroDevice->setStartUpImmediately();
gyroDevice->setGoNormalModeAtStartup();
#endif
}
+1 -1
View File
@@ -35,7 +35,7 @@ ReturnValue_t STM32TestTask::performOneShotAction() {
}
void STM32TestTask::performSpiL3gd20hTest() {
gyro = new GyroL3GD20H(&spiHandle, spi::TransferModes::POLLING);
gyro = new GyroL3GD20H(&spiHandle, spi::TransferModes::DMA);
gyro->initialize();
gyro->performOperation();
}
Submodule fsfw_hal updated: 05b64b05a3...8f61c23e62.