Skip to content

Commit f41cf08

Browse files
Paul Thompsonjeromecoutant
authored andcommitted
STM32 : correct compilation warnings
1 parent 495ae06 commit f41cf08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

targets/TARGET_STM/stm_spi_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
/* Consider 10ms as the default timeout for sending/receving 1 byte */
6868
#define TIMEOUT_1_BYTE 10
6969

70+
#if defined(SPI_FLAG_FRLVL) // STM32F0 STM32F3 STM32F7 STM32L4
71+
extern HAL_StatusTypeDef HAL_SPIEx_FlushRxFifo(SPI_HandleTypeDef *hspi);
72+
#endif
73+
7074
void init_spi(spi_t *obj)
7175
{
7276
struct spi_s *spiobj = SPI_S(obj);

0 commit comments

Comments
 (0)