stm32 icon indicating copy to clipboard operation
stm32 copied to clipboard

Don't do check for TRUE or FALSE at this place

Open msin87 opened this issue 5 years ago • 0 comments

https://github.com/LonelyWolf/stm32/blob/a6c104920ca905cf38c3b35e5b81e28e189166cf/Si4703/main.c#L98

Please, for compatibility with different stm32 microcontrollers, replace this check with the following: while (I2C_CheckEvent(I2C_PORT,I2C_EVENT_MASTER_MODE_SELECT)==ERROR);

For stm32f4 ErrorStatus defined as:

typedef enum 
{
  ERROR = 0U, 
  SUCCESS = !ERROR
} ErrorStatus;

Please do this in all your code

msin87 avatar Aug 28 '19 10:08 msin87