I am using xTaskNotify/xTaskNotifyFromISR/xTaskNotifyWait in an application using v8.2.3 FreeRTOS. There is a point in a task that I want to wait on a single bit to be set with timeout. At that point it is possible that other bits could be set but I don’t care about them right then and there but I can’t clear them because they will need to be acted on at a later time and place. The problem I have is that if a bit that I don’t care about is set at that point in time will cause xTaskNotifyWait to return.
I am trying to be “cheap” by using the xTaskNotify/xTaskNotifyWait for notification at multiple points in code where I expect a specific bit to change. I could just as well use a separate semaphore at the aformentioned point in code. An alternative might be to save set bits I don’t care about then and there and clear them in notification. Problem with that is extra overhead keeping track of time lapsed.
I read docs and it does not appear that API supports waiting on specific bits but I thought I’d ask anyway.
Thanks in advance.