Page 1 of 1
RTOS -- Trying to use a Queue as a multi-message point
Posted: Thu Dec 31, 2009 9:48 am
by pgmaser
I have read the NB Program Manual, and I decided to try the queue as a array of pointers. I post three times to the Queue and I pend forever in another task, but all I get is the last three tasks all of the same value. Does any one have a good example of how to use the queue on a NB platform?
Mailbox and FIFO work fine!
Phil
Re: RTOS -- Trying to use a Queue as a multi-message point
Posted: Fri Jan 01, 2010 1:58 pm
by Ridgeglider
in the latest tools release (Rel24_rc2_L2eBeta), see:
C:\nburn\examples\RTOS\OSQueue\main.cpp and
C:\nburn\examples\RTOS\OSFifo\main.cpp
I think the OSQueue example is new in this release; the fifo examle has been around for awhile. In addtion to showing about ques in general. it alsot shows how to force a post to the front of the queue.
Re: RTOS -- Trying to use a Queue as a multi-message point
Posted: Mon Jan 04, 2010 8:28 am
by pgmaser
Any chance you could see me the queue.cpp and main.cpp from this new release as I don't have it yet. I am waiting on a new budget so I can upgrade.
Phil