]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/countsem.c
Implement functionality that allows the memory required to create a queue or semaphor...
[freertos] / FreeRTOS / Demo / Common / Minimal / countsem.c
index bf6f2bbb803ffd133993f527e24335a53b82de22..3389e4a84e193c6e7e353b3c11f41e3d43595d00 100644 (file)
@@ -193,7 +193,7 @@ UBaseType_t ux;
        /* We should be able to 'take' the semaphore countMAX_COUNT_VALUE times. */\r
        for( ux = 0; ux < countMAX_COUNT_VALUE; ux++ )\r
        {\r
-               configASSERT( xSemaphoreGetCount( xSemaphore ) == ( countMAX_COUNT_VALUE - ux ) );\r
+               configASSERT( uxSemaphoreGetCount( xSemaphore ) == ( countMAX_COUNT_VALUE - ux ) );\r
 \r
                if( xSemaphoreTake( xSemaphore, countDONT_BLOCK ) != pdPASS )\r
                {\r
@@ -210,7 +210,7 @@ UBaseType_t ux;
 \r
        /* If the semaphore count is zero then we should not be able to 'take'\r
        the semaphore. */\r
-       configASSERT( xSemaphoreGetCount( xSemaphore ) == 0 );\r
+       configASSERT( uxSemaphoreGetCount( xSemaphore ) == 0 );\r
        if( xSemaphoreTake( xSemaphore, countDONT_BLOCK ) == pdPASS )\r
        {\r
                xErrorDetected = pdTRUE;\r
@@ -232,7 +232,7 @@ UBaseType_t ux;
        /* We should be able to 'give' the semaphore countMAX_COUNT_VALUE times. */\r
        for( ux = 0; ux < countMAX_COUNT_VALUE; ux++ )\r
        {\r
-               configASSERT( xSemaphoreGetCount( xSemaphore ) == ux );\r
+               configASSERT( uxSemaphoreGetCount( xSemaphore ) == ux );\r
 \r
                if( xSemaphoreGive( xSemaphore ) != pdPASS )\r
                {\r