This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARTX - ARM7 - os_evt_set, os_evt_wait_or

Hi,

I'm developping on ARM7 chip with ARTX OS and I would like to implement periodic task. My software is based onto the example you can find at the following link :
http://www.keil.com/support/docs/3008.htm

During my tests, I've detected some troubles with os_evt_set() an os_evt_wait_or() functions.

If a high task priority post two event before the low task take event with os_evt_wait_or(), sometimes this task is waking-up twice as the event have been store !

I don't understand. Could you help me ?

Thanks for all

Parents
  • You will need to put together code that gives you the behavior that you desire. A "simple" solution that does not do what you want is not a good choice. I do not believe the Keil will be changing the way events work any time soon (if at all) so you will need to either add a flag to your code or use some other technique. It is not clear exactly what you are trying to do so what I did was explain what the event system was doing. If it does not do what you want, then use something that does do what you want.

Reply
  • You will need to put together code that gives you the behavior that you desire. A "simple" solution that does not do what you want is not a good choice. I do not believe the Keil will be changing the way events work any time soon (if at all) so you will need to either add a flag to your code or use some other technique. It is not clear exactly what you are trying to do so what I did was explain what the event system was doing. If it does not do what you want, then use something that does do what you want.

Children
No data