|
PixelKey
NeoPixel USB Key
|
#include <stdlib.h>#include <stddef.h>#include <stdint.h>#include <stdbool.h>#include "hal_data.h"#include "pixelkey_errors.h"#include "config.h"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 |