stm32-sx1280: define support for custom SPI driver in hw.h

This commit is contained in:
Matthias Ringwald 2020-09-17 00:03:04 +02:00
parent 2acaaa65ac
commit 6c52fbaad6
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}

View File

@ -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