RTOS -- Trying to use a Queue as a multi-message point

Discussion to talk about software related topics only.
Post Reply
pgmaser
Posts: 5
Joined: Thu Dec 31, 2009 9:25 am

RTOS -- Trying to use a Queue as a multi-message point

Post 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
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: RTOS -- Trying to use a Queue as a multi-message point

Post 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.
pgmaser
Posts: 5
Joined: Thu Dec 31, 2009 9:25 am

Re: RTOS -- Trying to use a Queue as a multi-message point

Post 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
Post Reply