From 6c52fbaad6352970902476e584191cdbf1d2d43e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 17 Sep 2020 00:03:04 +0200 Subject: [PATCH] stm32-sx1280: define support for custom SPI driver in hw.h --- chipset/sx128x/SMTC_Drivers/sx1280-driver-c/sx1280-hal.c | 2 +- port/stm32-l451-miromico-sx1280/port/hw.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chipset/sx128x/SMTC_Drivers/sx1280-driver-c/sx1280-hal.c b/chipset/sx128x/SMTC_Drivers/sx1280-driver-c/sx1280-hal.c index b3c1ae14f..4d63a2508 100644 --- a/chipset/sx128x/SMTC_Drivers/sx1280-driver-c/sx1280-hal.c +++ b/chipset/sx128x/SMTC_Drivers/sx1280-driver-c/sx1280-hal.c @@ -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 ); } diff --git a/port/stm32-l451-miromico-sx1280/port/hw.h b/port/stm32-l451-miromico-sx1280/port/hw.h index bd040bdcc..46c7eaf5b 100644 --- a/port/stm32-l451-miromico-sx1280/port/hw.h +++ b/port/stm32-l451-miromico-sx1280/port/hw.h @@ -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