cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a non-polling version of HAL_I2C_IsDeviceReady?

SLoud.1
Associate

I am looking for an interrupt based replacement for HAL_I2C_IsDeviceReady. I am implementing a EEPROM library for M24256 I2C Serial EEPROM in a FreeRTOS application.  The call HAL_I2C_IsDeviceReady relies on polling for many milliseconds to perform this function. Is there a version written to use interrupts?

1 ACCEPTED SOLUTION

Accepted Solutions
Foued_KH
ST Employee

Hello @nonesuchoudon​ ,

There is only a polling version of HAL_I2C_IsDeviceReady.

This function is used with Memory devices.

(DevAddress Target device address: The device 7 bits address value in datasheet must be shifted to the left before calling the interface).

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Foued_KH
ST Employee

Hello @nonesuchoudon​ ,

There is only a polling version of HAL_I2C_IsDeviceReady.

This function is used with Memory devices.

(DevAddress Target device address: The device 7 bits address value in datasheet must be shifted to the left before calling the interface).

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.