Change how volatile is used in some of the standard demos to remove compiler warnings in the latest GCC versions.

This commit is contained in:
Richard Barry 2017-01-04 05:07:12 +00:00
parent ca9edf3531
commit c882141175
5 changed files with 18 additions and 17 deletions

View file

@ -619,8 +619,9 @@ uint32_t ulReceived;
static void prvSendToQueueInSetFromISR( void )
{
static BaseType_t xQueueToWriteTo = 0;
uint32_t ulTxValueSnapshot = ulISRTxValue;
if( xQueueSendFromISR( xQueues[ xQueueToWriteTo ], ( void * ) &ulISRTxValue, NULL ) == pdPASS )
if( xQueueSendFromISR( xQueues[ xQueueToWriteTo ], ( void * ) &ulTxValueSnapshot, NULL ) == pdPASS )
{
ulISRTxValue++;