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
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
\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
\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