/* Definition of the button poll task described in the comments at the top of this file.  */
static void prvButtonPollTask(void *pvParameters)
/* Definition of the button poll task described in the comments at the top of this file.  */
static void prvButtonPollTask(void *pvParameters)
{
long lLastState = pdTRUE;
long lState;
xQueueMessage xMessage;
	for( ;; )
	{
		lState = STM_EVAL_PBGetState( BUTTON_UP );
		if( lState != lLastState )
		{
			xMessage.cMessageID = mainMESSAGE_BUTTON_UP;
			xMessage.lMessageValue = lState;
			lLastState = lState;
			xQueueSend( xLCDQueue, &xMessage, portMAX_DELAY );
		}
		vTaskDelay( 10 / portTICK_RATE_MS );
	}
}