19#ifndef AT24CXXX_PARAMS_H
20#define AT24CXXX_PARAMS_H
34#ifndef AT24CXXX_PARAM_I2C
38#define AT24CXXX_PARAM_I2C (I2C_DEV(0))
40#ifndef AT24CXXX_PARAM_ADDR
44#define AT24CXXX_PARAM_ADDR (AT24CXXX_DEF_DEV_ADDR)
46#ifndef AT24CXXX_PARAM_PIN_WP
50#define AT24CXXX_PARAM_PIN_WP (GPIO_UNDEF)
52#ifndef AT24CXXX_PARAM_EEPROM_SIZE
56#define AT24CXXX_PARAM_EEPROM_SIZE (AT24CXXX_EEPROM_SIZE)
58#ifndef AT24CXXX_PARAM_PAGE_SIZE
62#define AT24CXXX_PARAM_PAGE_SIZE (AT24CXXX_PAGE_SIZE)
64#ifndef AT24CXXX_PARAM_MAX_POLLS
68#define AT24CXXX_PARAM_MAX_POLLS (AT24CXXX_MAX_POLLS)
70#ifndef AT24CXXX_PARAMS
74#define AT24CXXX_PARAMS { \
75 .i2c = AT24CXXX_PARAM_I2C, \
76 .pin_wp = AT24CXXX_PARAM_PIN_WP, \
77 .eeprom_size = AT24CXXX_PARAM_EEPROM_SIZE, \
78 .dev_addr = AT24CXXX_PARAM_ADDR, \
79 .page_size = AT24CXXX_PARAM_PAGE_SIZE, \
80 .max_polls = AT24CXXX_PARAM_MAX_POLLS \
88#define AT24CXXX_NUMOF ARRAY_SIZE(at24cxxx_params)
Constants for various I2C EEPROM devices.
#define AT24CXXX_PARAMS
Default device configuration parameters.
Low-level GPIO peripheral driver interface definitions.
Struct that holds initialization parameters.