AnsweredAssumed Answered

stm32 HAL SPI flags

Question asked by said ediz on Mar 8, 2018

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?

Outcomes