mirror of https://github.com/ARMmbed/mbed-os.git
STM32 : correct compilation warnings
parent
684671ce69
commit
9a2b701a75
|
@ -67,6 +67,10 @@
|
||||||
/* Consider 10ms as the default timeout for sending/receving 1 byte */
|
/* Consider 10ms as the default timeout for sending/receving 1 byte */
|
||||||
#define TIMEOUT_1_BYTE 10
|
#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)
|
void init_spi(spi_t *obj)
|
||||||
{
|
{
|
||||||
struct spi_s *spiobj = SPI_S(obj);
|
struct spi_s *spiobj = SPI_S(obj);
|
||||||
|
|
Loading…
Reference in New Issue