Add beginTransaction to HAL SPI (#9019)
This commit is contained in:
1 parent
fc67c64b8f
commit
959a2d2527
6 files changed
+122
-3
No files matched your search
@@ -164,6 +164,13 @@ void spiSendBlock(uint8_t token, const uint8_t* buf) {
|
||||
SPI.endTransaction();
|
||||
}
|
||||
|
||||
/** Begin SPI transaction, set clock, bit order, data mode */
|
||||
void spiBeginTransaction(uint32_t spiClock, uint8_t bitOrder, uint8_t dataMode) {
|
||||
spiConfig = SPISettings(spiClock, bitOrder, dataMode);
|
||||
|
||||
SPI.beginTransaction(spiConfig);
|
||||
}
|
||||
|
||||
#endif // SOFTWARE_SPI
|
||||
|
||||
#endif // __STM32F1__
|
||||
Reference in new issue
Block a user