sketchbook
|
#include <avr/eeprom.h>
#include "pgm.h"
#include <util/crc16.h>
#include "dev_data.h"
#include "debug.h"
Macros | |
#define | NO_DEBUG |
#define | EEPROM_VALID 1 |
#define | read_byte(x) cfg_byte(x) |
#define | read_crc_byte(x, y) read_byte(y) |
#define | _do_crc(x) 1 |
Functions | |
uint8_t | cfg_byte (cfg_addr_t addr) |
char | _cfg_read (void *data, uint8_t size, ConfigID id) |
cfg_addr_t | cfg_addr (uint8_t *size, ConfigID id) |
uint8_t | cfg_count (cfg_addr_t *addr) |
uint8_t | cfg_type (cfg_addr_t *addr) |
Variables | |
uint8_t | _config_start |
uint8_t | _config_end |
#define _do_crc | ( | x | ) | 1 |
#define EEPROM_VALID 1 |
#define NO_DEBUG |
char _cfg_read | ( | void * | data, |
uint8_t | size, | ||
ConfigID | id | ||
) |
cfg_addr_t cfg_addr | ( | uint8_t * | size, |
ConfigID | id | ||
) |
|
inline |
uint8_t cfg_count | ( | cfg_addr_t * | addr | ) |
enumerate config entries. Zero == no more. Usage: len = cfg_count(&adr); while (len–) typ = cfg_type(&adr);
uint8_t cfg_type | ( | cfg_addr_t * | addr | ) |
uint8_t _config_end |
uint8_t _config_start |