refactored spi components for stm32

This commit is contained in:
2021-06-10 12:05:49 +02:00
parent 499ff5dd12
commit 5c40ca9ae8
13 changed files with 187 additions and 94 deletions

View File

@ -149,11 +149,7 @@ ReturnValue_t GyroHandlerL3GD20H::scanForReply(const uint8_t *start, size_t len,
*foundId = this->getPendingCommand();
*foundLen = this->rawPacketLen;
/* Data with SPI Interface has always this answer */
if (start[0] == 0b11111111) {
return HasReturnvaluesIF::RETURN_OK;
}
return DeviceHandlerIF::INVALID_DATA;
return HasReturnvaluesIF::RETURN_OK;
}
ReturnValue_t GyroHandlerL3GD20H::interpretDeviceReply(DeviceCommandId_t id,

View File

@ -7,6 +7,9 @@
#include <fsfw/devicehandlers/DeviceHandlerBase.h>
#include <fsfw/globalfunctions/PeriodicOperationDivider.h>
#ifndef L3GD20_GYRO_DEBUG
#define L3GD20_GYRO_DEBUG 1
#endif
/**
* @brief Device Handler for the L3GD20H gyroscope sensor