cancel
Showing results for 
Search instead for 
Did you mean: 

stm32 HAL SPI flags

said ediz
Associate II
Posted on March 08, 2018 at 14:55

Hello,

Before I have written a SPI function. std peripheral library at stm8l0 serie. Here is a part of code.

if(SPI_GetFlagStatus(SPI1, SPI_FLAG_TXE) && (spi_ri < lenght)) // Check tx flags here

{

SPI_SendData(SPI1, *(buf+spi_ri));

spi_ri++;

SPI_ClearFlag(SPI1, SPI_FLAG_TXE);

}

I have checked tx flags then i have sent my frame.

Now i want to do same at ST's stm32l053c8 microcontroller. I checked flags from datasheet and almost same flags exist. But when i opened HAL's SPI library i could not see any flag management function. Am i blind or should i do another thing for check flags?

#hal-spi
0 REPLIES 0