Hello,
Currently, I am working on a device that has multiple sensors connected with nRF53. Each sensor collects its own data in its thread. Some sensor threads are related to each other i.e. waiting to get a message from a peer sensor thread via ZBUS to go further measurent.
For example, sensor_thread_1 is waiting to get a message from sensor_thread_2 via a ZBUS channel through zbus_sub_wait_msg API. Once the message is received, the sensor_thread_1 will perform further measurements and then get back to the ZBUS waiting state to receive the next message from sensor_thread_2.
Now, I am implementing a Watchdog in my current project and I need to feed from each loop running continuously (especially the sensor threads).
So, I need help to handle such a situation where the sensor thread is already blocked by waiting for a ZBUS message or to get Semaphore and feed the watchdog.