mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 00:36:00 +00:00
Fixed compile warnings
This commit is contained in:
parent
4f3b9953ea
commit
becbf4327f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user