My idea about ARTX isr_evt_set()

In the ARTX help say 'It might happen that two isr_evt_set() functions for the same task are called before the task gets a chance to run from os_evt_wait_xx() event waiting function. Of course one event is lost because event flags are not counting objects.' I think if two isr_evt_set() functions should be called, we can set the different bit of the event_flags, then no event will be lost. I mean the isr_evt_set() functions just OR the event_flags but not cover with the event_flags. My idea is right?

Parents
  • "I think if two isr_evt_set() functions should be called, we can set the different bit of the event_flags, then no event will be lost."

    But then it would be a different event now, wouldn't it?

    "I mean the isr_evt_set() functions just OR the event_flags..."

    ORs can't accumulate. ORing a 1 with a 1, resulting in a 1 does not make it more of a 1 now does it?

    "...but not cover with the event_flags"

    I don't understand what your are trying to ask with that last part.

Reply
  • "I think if two isr_evt_set() functions should be called, we can set the different bit of the event_flags, then no event will be lost."

    But then it would be a different event now, wouldn't it?

    "I mean the isr_evt_set() functions just OR the event_flags..."

    ORs can't accumulate. ORing a 1 with a 1, resulting in a 1 does not make it more of a 1 now does it?

    "...but not cover with the event_flags"

    I don't understand what your are trying to ask with that last part.

Children
More questions in this forum