]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/AltPollQ.c
Replace use of legacy portTYPE macros from old demos and standard demo files.
[freertos] / FreeRTOS / Demo / Common / Minimal / AltPollQ.c
index f1af2a37c316e65b73f824dc3eae358e347524cf..f4edd7f01d244466c59ea035628c2c1a656eda8d 100644 (file)
@@ -88,7 +88,7 @@
 Changes from V2.0.0\r
 \r
        + Delay periods are now specified using variables and constants of\r
-         portTickType rather than unsigned portLONG.\r
+         portTickType rather than unsigned long.\r
 */\r
 \r
 #include <stdlib.h>\r
@@ -126,7 +126,7 @@ void vStartAltPolledQueueTasks( unsigned portBASE_TYPE uxPriority )
 static xQueueHandle xPolledQueue;\r
 \r
        /* Create the queue used by the producer and consumer. */\r
-       xPolledQueue = xQueueCreate( pollqQUEUE_SIZE, ( unsigned portBASE_TYPE ) sizeof( unsigned portSHORT ) );\r
+       xPolledQueue = xQueueCreate( pollqQUEUE_SIZE, ( unsigned portBASE_TYPE ) sizeof( unsigned short ) );\r
 \r
        /* vQueueAddToRegistry() adds the queue to the queue registry, if one is\r
        in use.  The queue registry is provided as a means for kernel aware \r
@@ -145,13 +145,13 @@ static xQueueHandle xPolledQueue;
 \r
 static portTASK_FUNCTION( vPolledQueueProducer, pvParameters )\r
 {\r
-unsigned portSHORT usValue = ( unsigned portSHORT ) 0;\r
+unsigned short usValue = ( unsigned short ) 0;\r
 signed portBASE_TYPE xError = pdFALSE, xLoop;\r
 \r
        #ifdef USE_STDIO\r
-       void vPrintDisplayMessage( const portCHAR * const * ppcMessageToSend );\r
+       void vPrintDisplayMessage( const char * const * ppcMessageToSend );\r
        \r
-               const portCHAR * const pcTaskStartMsg = "Alt polling queue producer task started.\r\n";\r
+               const char * const pcTaskStartMsg = "Alt polling queue producer task started.\r\n";\r
 \r
                /* Queue a message for printing to say the task has started. */\r
                vPrintDisplayMessage( &pcTaskStartMsg );\r
@@ -193,13 +193,13 @@ signed portBASE_TYPE xError = pdFALSE, xLoop;
 \r
 static portTASK_FUNCTION( vPolledQueueConsumer, pvParameters )\r
 {\r
-unsigned portSHORT usData, usExpectedValue = ( unsigned portSHORT ) 0;\r
+unsigned short usData, usExpectedValue = ( unsigned short ) 0;\r
 signed portBASE_TYPE xError = pdFALSE;\r
 \r
        #ifdef USE_STDIO\r
-       void vPrintDisplayMessage( const portCHAR * const * ppcMessageToSend );\r
+       void vPrintDisplayMessage( const char * const * ppcMessageToSend );\r
        \r
-               const portCHAR * const pcTaskStartMsg = "Alt blocking queue consumer task started.\r\n";\r
+               const char * const pcTaskStartMsg = "Alt blocking queue consumer task started.\r\n";\r
 \r
                /* Queue a message for printing to say the task has started. */\r
                vPrintDisplayMessage( &pcTaskStartMsg );\r