PixelKey
NeoPixel USB Key
Loading...
Searching...
No Matches
Flash NVMem Internals

Macros

#define DATA_FLASH_BLOCKS_PER_CONFIG   ((sizeof(config_data_t) + BSP_FEATURE_FLASH_LP_DF_BLOCK_SIZE - 1)/BSP_FEATURE_FLASH_LP_DF_BLOCK_SIZE)
 Number of data flash blocks required by config_data_t (rounds up).
 

Functions

static pixelkey_error_t flash_config_write (config_data_t const *const p_config_data)
 
static pixelkey_error_t flash_config_read (config_data_t **pp_config_data)
 

Variables

char const __Data_Flash_Start
 
config_data_t const *const p_nv_config = (config_data_t *)((void *)&__Data_Flash_Start)
 Pointer to the configuration struct at the start of the Data Flash section.
 
static uint32_t nv_crc = UINT32_MAX
 Calculated NV memory CRC to validate the data.
 
const config_api_t g_hal_config
 

Detailed Description

Variable Documentation

◆ g_hal_config

const config_api_t g_hal_config
Initial value:
=
{
.write = flash_config_write,
.read = flash_config_read,
}