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
RTOS -- Trying to use a Queue as a multi-message point
-
- Posts: 513
- Joined: Sat Apr 26, 2008 7:14 am
Re: RTOS -- Trying to use a Queue as a multi-message point
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.
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
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
Phil