mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-26 04:58:36 -04:00
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:
parent
ca9edf3531
commit
c882141175
5 changed files with 18 additions and 17 deletions
|
@ -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++;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue