summaryrefslogtreecommitdiff
path: root/Demo/Common/Minimal/AltPollQ.c
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-05-23 18:49:59 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-05-23 18:49:59 +0000
commit8e4a41614394fe3e13bba1bf0036fe0926e4d70d (patch)
tree04e544b12fa632050cec1f3264ee902024cccb9f /Demo/Common/Minimal/AltPollQ.c
parent8439f91bec3bd50c0ef5b8560c6bc6f82ed2dcc8 (diff)
downloadfreertos-8e4a41614394fe3e13bba1bf0036fe0926e4d70d.tar.gz
freertos-8e4a41614394fe3e13bba1bf0036fe0926e4d70d.tar.bz2
freertos-8e4a41614394fe3e13bba1bf0036fe0926e4d70d.tar.xz
Add in example vQueueAddToRegistry() calls.
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@379 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Demo/Common/Minimal/AltPollQ.c')
-rw-r--r--Demo/Common/Minimal/AltPollQ.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Demo/Common/Minimal/AltPollQ.c b/Demo/Common/Minimal/AltPollQ.c
index 19facb9b..005393de 100644
--- a/Demo/Common/Minimal/AltPollQ.c
+++ b/Demo/Common/Minimal/AltPollQ.c
@@ -112,6 +112,15 @@ static xQueueHandle xPolledQueue;
/* Create the queue used by the producer and consumer. */
xPolledQueue = xQueueCreate( pollqQUEUE_SIZE, ( unsigned portBASE_TYPE ) sizeof( unsigned portSHORT ) );
+ /* vQueueAddToRegistry() adds the queue to the queue registry, if one is
+ in use. The queue registry is provided as a means for kernel aware
+ debuggers to locate queues and has no purpose if a kernel aware debugger
+ is not being used. The call to vQueueAddToRegistry() will be removed
+ by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is
+ defined to be less than 1. */
+ vQueueAddToRegistry( xPolledQueue, ( signed portCHAR * ) "AltPollQueue" );
+
+
/* Spawn the producer and consumer. */
xTaskCreate( vPolledQueueConsumer, ( signed portCHAR * ) "QConsNB", pollqSTACK_SIZE, ( void * ) &xPolledQueue, uxPriority, ( xTaskHandle * ) NULL );
xTaskCreate( vPolledQueueProducer, ( signed portCHAR * ) "QProdNB", pollqSTACK_SIZE, ( void * ) &xPolledQueue, uxPriority, ( xTaskHandle * ) NULL );