summaryrefslogtreecommitdiff
path: root/Demo/Common/Minimal/semtest.c
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-05-30 15:44:17 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-05-30 15:44:17 +0000
commita913050cf469592d12cb6efd56689ddfe38130fd (patch)
tree3a58e40a618420418deda2273230e4d58e6fcc1b /Demo/Common/Minimal/semtest.c
parent618ded18776147b442f8c7374b7a6c8289a10ed9 (diff)
downloadfreertos-a913050cf469592d12cb6efd56689ddfe38130fd.tar.gz
freertos-a913050cf469592d12cb6efd56689ddfe38130fd.tar.bz2
freertos-a913050cf469592d12cb6efd56689ddfe38130fd.tar.xz
Update to V5.0.2
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@394 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Demo/Common/Minimal/semtest.c')
-rw-r--r--Demo/Common/Minimal/semtest.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/Demo/Common/Minimal/semtest.c b/Demo/Common/Minimal/semtest.c
index 5158b9a9..424c0b43 100644
--- a/Demo/Common/Minimal/semtest.c
+++ b/Demo/Common/Minimal/semtest.c
@@ -1,5 +1,5 @@
/*
- FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
+ FreeRTOS.org V5.0.2 - Copyright (C) 2003-2008 Richard Barry.
This file is part of the FreeRTOS.org distribution.
@@ -155,6 +155,15 @@ const portTickType xBlockTime = ( portTickType ) 100;
xTaskCreate( prvSemaphoreTest, ( signed portCHAR * ) "BlkSEM2", semtstSTACK_SIZE, ( void * ) pxSecondSemaphoreParameters, uxPriority, ( xTaskHandle * ) NULL );
}
}
+
+ /* vQueueAddToRegistry() adds the semaphore to the registry, if one is
+ in use. The registry is provided as a means for kernel aware
+ debuggers to locate semaphores 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( ( xQueueHandle ) pxFirstSemaphoreParameters->xSemaphore, ( signed portCHAR * ) "Counting_Sem_1" );
+ vQueueAddToRegistry( ( xQueueHandle ) pxSecondSemaphoreParameters->xSemaphore, ( signed portCHAR * ) "Counting_Sem_2" );
}
/*-----------------------------------------------------------*/