[efr32] add missing volatile qualifiers (#3292)

This commit is contained in:
Joseph Newman
2018-11-12 18:23:19 -08:00
committed by Jonathan Hui
parent 7d36e8d913
commit bf6e854a85
2 changed files with 11 additions and 11 deletions
+8 -8
View File
@@ -67,19 +67,19 @@ enum
EFR32_RECEIVE_SENSITIVITY = -100, // dBm
};
static uint16_t sPanId = 0;
static bool sTransmitBusy = false;
static bool sPromiscuous = false;
static bool sIsSrcMatchEnabled = false;
static otRadioState sState = OT_RADIO_STATE_DISABLED;
static uint16_t sPanId = 0;
static volatile bool sTransmitBusy = false;
static bool sPromiscuous = false;
static bool sIsSrcMatchEnabled = false;
static otRadioState sState = OT_RADIO_STATE_DISABLED;
static uint8_t sReceivePsdu[IEEE802154_MAX_LENGTH];
static otRadioFrame sReceiveFrame;
static otError sReceiveError;
static otRadioFrame sTransmitFrame;
static uint8_t sTransmitPsdu[IEEE802154_MAX_LENGTH];
static otError sTransmitError;
static otRadioFrame sTransmitFrame;
static uint8_t sTransmitPsdu[IEEE802154_MAX_LENGTH];
static volatile otError sTransmitError;
typedef struct srcMatchEntry
{
+3 -3
View File
@@ -76,16 +76,16 @@ static UARTDRV_HandleData_t sUartHandleData;
static UARTDRV_Handle_t sUartHandle = &sUartHandleData;
static uint8_t sReceiveBuffer[2];
static const uint8_t * sTransmitBuffer = NULL;
static uint16_t sTransmitLength = 0;
static volatile uint16_t sTransmitLength = 0;
typedef struct ReceiveFifo_t
{
// The data buffer
uint8_t mBuffer[kReceiveFifoSize];
// The offset of the first item written to the list.
uint16_t mHead;
volatile uint16_t mHead;
// The offset of the next item to be written to the list.
uint16_t mTail;
volatile uint16_t mTail;
} ReceiveFifo_t;
static ReceiveFifo_t sReceiveFifo;