refactored fsfw_hal

This commit is contained in:
Robin Müller 2021-06-10 19:09:56 +02:00
parent 1f9fcecd98
commit dcc61873b2
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C
3 changed files with 4 additions and 3 deletions

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
}

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();
}

@ -1 +1 @@
Subproject commit 05b64b05a3b5777298b28b2fa2ba544554bb2e3b
Subproject commit 8f61c23e624e55e44c3410f0204010559e2bd7d9