mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-21 03:40:47 +00:00
stm32-sx1280: define support for custom SPI driver in hw.h
This commit is contained in:
parent
2acaaa65ac
commit
6c52fbaad6
@ -188,7 +188,7 @@ void SpiInOut( uint8_t *txBuffer, uint8_t *rxBuffer, uint16_t size )
|
||||
{
|
||||
#ifdef STM32L4XX_FAMILY
|
||||
// Comment For STM32L0XX and STM32L1XX Intégration, uncomment for STM32L4XX Intégration
|
||||
HAL_SPIEx_FlushRxFifo( &RADIO_SPI_HANDLERADIO_SPI_HANDLE );
|
||||
HAL_SPIEx_FlushRxFifo( &RADIO_SPI_HANDLE );
|
||||
#endif
|
||||
HAL_SPI_TransmitReceive( &RADIO_SPI_HANDLE, txBuffer, rxBuffer, size, HAL_MAX_DELAY );
|
||||
}
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "sx1280.h"
|
||||
#include "sx1280-hal.h"
|
||||
|
||||
#define USE_BK_SPI
|
||||
// #define USE_BK_SPI
|
||||
|
||||
/* Define the board */
|
||||
#define BOARD_MIROMICO_L451RE
|
||||
|
Loading…
x
Reference in New Issue
Block a user