Merge pull request #2376 from dhalbert/nrf-internal-flash-volatile-fix

nrf: sd_flash_operation_status should be volatile
This commit is contained in:
Scott Shawcroft 2019-12-12 10:17:26 -08:00 committed by GitHub
commit 887f64eed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
nrf_nvic_state_t nrf_nvic_state = { 0 };
// Flag indicating progress of internal flash operation.
sd_flash_operation_status_t sd_flash_operation_status;
volatile sd_flash_operation_status_t sd_flash_operation_status;
__attribute__((aligned(4)))
static uint8_t m_ble_evt_buf[sizeof(ble_evt_t) + (BLE_GATT_ATT_MTU_DEFAULT)];

View File

@ -59,7 +59,7 @@ typedef enum {
} sd_flash_operation_status_t;
// Flag indicating progress of internal flash operation.
extern sd_flash_operation_status_t sd_flash_operation_status;
extern volatile sd_flash_operation_status_t sd_flash_operation_status;
typedef struct ble_drv_evt_handler_entry {
struct ble_drv_evt_handler_entry *next;