mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 18:07:47 +00:00
[efr32] add missing volatile qualifiers (#3292)
This commit is contained in:
committed by
Jonathan Hui
parent
7d36e8d913
commit
bf6e854a85
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user