19#ifndef AT25XXX_PARAMS_H
20#define AT25XXX_PARAMS_H
33#ifndef AT25XXX_PARAM_SPI
34#define AT25XXX_PARAM_SPI (SPI_DEV(0))
36#ifndef AT25XXX_PARAM_SPI_CLK
37#define AT25XXX_PARAM_SPI_CLK (SPI_CLK_5MHZ)
39#ifndef AT25XXX_PARAM_CS
40#define AT25XXX_PARAM_CS (GPIO_PIN(0, 0))
42#ifndef AT25XXX_PARAM_WP
43#define AT25XXX_PARAM_WP (GPIO_UNDEF)
45#ifndef AT25XXX_PARAM_HOLD
46#define AT25XXX_PARAM_HOLD (GPIO_UNDEF)
48#ifndef AT25XXX_PARAM_SIZE
49#define AT25XXX_PARAM_SIZE (128 * 1024UL)
51#ifndef AT25XXX_PARAM_ADDR_LEN
52#define AT25XXX_PARAM_ADDR_LEN (24)
54#ifndef AT25XXX_PARAM_PAGE_SIZE
55#define AT25XXX_PARAM_PAGE_SIZE (256)
59#define AT25XXX_PARAMS { .spi = AT25XXX_PARAM_SPI, \
60 .spi_clk = AT25XXX_PARAM_SPI_CLK, \
61 .cs_pin = AT25XXX_PARAM_CS, \
62 .wp_pin = AT25XXX_PARAM_WP, \
63 .hold_pin = AT25XXX_PARAM_HOLD, \
64 .size = AT25XXX_PARAM_SIZE, \
65 .page_size = AT25XXX_PARAM_PAGE_SIZE }
Driver for the AT25xxx series of EEPROMs.
static const at25xxx_params_t at25xxx_params[]
AT25XXX configuration.
struct holding all params needed for device initialization