STM32 : correct compilation warnings

pull/6599/head
Paul Thompson 2018-03-10 11:31:13 -08:00 committed by jeromecoutant
parent 495ae06c70
commit f41cf081c9
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@
/* Consider 10ms as the default timeout for sending/receving 1 byte */
#define TIMEOUT_1_BYTE 10
#if defined(SPI_FLAG_FRLVL) // STM32F0 STM32F3 STM32F7 STM32L4
extern HAL_StatusTypeDef HAL_SPIEx_FlushRxFifo(SPI_HandleTypeDef *hspi);
#endif
void init_spi(spi_t *obj)
{
struct spi_s *spiobj = SPI_S(obj);