Skip to main content
HDesa.1
Associate III
Jul 14, 2022 10:38 AM UTC
Question

Hello, Can anyone please guide me with CMSIS-RTOS & I2C communication interface?

I am using multiple devices which access I2C communication channel. Can anyone suggest me what should be the preferred method to avoid clashes between the devices.

The devices are placed across different RTOS tasks.

This topic has been closed for replies.

2 replies

KnarfB
Super User
Jul 14, 2022 10:45 AM UTC

Implement a mutex protecting every I2C access.

hth

KnarfB

HDesa.1
HDesa.1Author
Associate III
Jul 15, 2022 5:38 AM UTC

Thank you for the suggestion.

As I am new to RTOS, could you please provide me some insight on Mutex and Binary Semaphores. Also will I need individual mutexes for each devices?

-RegardsHrishikesh