#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include "hal.h"
#include "nvs_buffer.h"
#include "protocol.h"
#include "settings.h"
#include "gcode.h"
#include "nvs.h"
#include "report.h"
Data Structures | |
struct | emap_t |
Macros | |
#define | NVS_GROUP_GLOBAL 0 |
#define | NVS_GROUP_TOOLS 1 |
#define | NVS_GROUP_PARAMETERS 2 |
#define | NVS_GROUP_STARTUP 3 |
#define | NVS_GROUP_BUILD 4 |
#define | PARAMETER_ADDR(n) (NVS_ADDR_PARAMETERS + n * (sizeof(coord_data_t) + NVS_CRC_BYTES)) |
#define | STARTLINE_ADDR(n) (NVS_ADDR_STARTUP_BLOCK + n * (sizeof(stored_line_t) + NVS_CRC_BYTES)) |
Functions | |
bool | nvs_buffer_alloc (void) |
void | nvs_buffer_free (void) |
bool | nvs_buffer_init (void) |
nvs_address_t | nvs_alloc (size_t size) |
void | nvs_buffer_sync_physical (void) |
nvs_io_t * | nvs_buffer_get_physical (void) |
void | nvs_memmap (void) |
Variables | |
uint32_t | nvs_size_max = NVS_SIZE |
settings_dirty_t | settings_dirty |
#define NVS_GROUP_BUILD 4 |
#define NVS_GROUP_GLOBAL 0 |
#define NVS_GROUP_PARAMETERS 2 |
#define NVS_GROUP_STARTUP 3 |
#define NVS_GROUP_TOOLS 1 |
#define PARAMETER_ADDR | ( | n | ) | (NVS_ADDR_PARAMETERS + n * (sizeof(coord_data_t) + NVS_CRC_BYTES)) |
#define STARTLINE_ADDR | ( | n | ) | (NVS_ADDR_STARTUP_BLOCK + n * (sizeof(stored_line_t) + NVS_CRC_BYTES)) |
nvs_address_t nvs_alloc | ( | size_t | size | ) |
bool nvs_buffer_alloc | ( | void | ) |
void nvs_buffer_free | ( | void | ) |
nvs_io_t* nvs_buffer_get_physical | ( | void | ) |
bool nvs_buffer_init | ( | void | ) |
void nvs_buffer_sync_physical | ( | void | ) |
void nvs_memmap | ( | void | ) |
uint32_t nvs_size_max = NVS_SIZE |
settings_dirty_t settings_dirty |