Skip to content

Instantly share code, notes, and snippets.

@ksksue
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksksue/d2732e8595b807df491f to your computer and use it in GitHub Desktop.
Save ksksue/d2732e8595b807df491f to your computer and use it in GitHub Desktop.
static uint8_t pstorage_wait_flag = 0;
static pstorage_block_t pstorage_wait_handle = 0;
static void flash_cb_handler(pstorage_handle_t *handle,
uint8_t op_code,
uint32_t result,
uint8_t *p_data,
uint32_t data_len)
{
if(handle->block_id == pstorage_wait_handle) { pstorage_wait_flag = 0; }
APP_ERROR_CHECK(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment