mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-09-28 21:17:33 +00:00
Fixed compile warnings
This commit is contained in:
@@ -31,6 +31,7 @@ namespace sta
|
||||
*/
|
||||
SPI(const SPISettings & settings, Mutex * mutex = nullptr);
|
||||
|
||||
using Interface::transfer;
|
||||
/**
|
||||
* @brief Send and receive data simultaneously.
|
||||
*
|
||||
|
@@ -21,7 +21,7 @@ namespace sta
|
||||
STA_ASSERT(txBuffer != nullptr);
|
||||
STA_ASSERT(rxBuffer != nullptr);
|
||||
|
||||
intf_->transfer(txBuffer, rxBuffer, size, timeout);
|
||||
return intf_->transfer(txBuffer, rxBuffer, size, timeout);
|
||||
}
|
||||
|
||||
const SPISettings & SPIDevice::settings() const
|
||||
|
@@ -154,6 +154,8 @@ namespace sta
|
||||
return HAL_SPI_Transmit(handle_, reinterpret_cast<uint8_t *>(&dummy), 1, timeout) == HAL_OK;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
STM32SPIDevice::STM32SPIDevice(STM32SPI * intf, STM32GpioPin * csPin)
|
||||
|
Reference in New Issue
Block a user