at25xxx_params.h File Reference

Default configuration for the M95M01 EEPROM. More...

Detailed Description

Default configuration for the M95M01 EEPROM.

Author
Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com

Definition in file at25xxx_params.h.

#include "board.h"
#include "at25xxx.h"
+ Include dependency graph for at25xxx_params.h:

Go to the source code of this file.

Set default configuration parameters for the AT25XXX driver

#define AT25XXX_PARAM_SPI   (SPI_DEV(0))
 
#define AT25XXX_PARAM_SPI_CLK   (SPI_CLK_5MHZ)
 
#define AT25XXX_PARAM_CS   (GPIO_PIN(0, 0))
 
#define AT25XXX_PARAM_WP   (GPIO_UNDEF)
 
#define AT25XXX_PARAM_HOLD   (GPIO_UNDEF)
 
#define AT25XXX_PARAM_SIZE   (128 * 1024UL) /* EEPROM size, in bytes */
 
#define AT25XXX_PARAM_ADDR_LEN   (24) /* Address length, in bits */
 
#define AT25XXX_PARAM_PAGE_SIZE   (256) /* Page size, in bytes */
 
#define AT25XXX_PARAMS
 
static const at25xxx_params_t at25xxx_params []
 AT25XXX configuration. More...
 

Macro Definition Documentation

◆ AT25XXX_PARAMS

#define AT25XXX_PARAMS
Value:
{ .spi = AT25XXX_PARAM_SPI, \
.spi_clk = AT25XXX_PARAM_SPI_CLK, \
.cs_pin = AT25XXX_PARAM_CS, \
.wp_pin = AT25XXX_PARAM_WP, \
.hold_pin = AT25XXX_PARAM_HOLD, \
.size = AT25XXX_PARAM_SIZE, \
.page_size = AT25XXX_PARAM_PAGE_SIZE }

Definition at line 60 of file at25xxx_params.h.

Variable Documentation

◆ at25xxx_params

const at25xxx_params_t at25xxx_params[]
static
Initial value:
=
{
AT25XXX_PARAMS
}

AT25XXX configuration.

Definition at line 72 of file at25xxx_params.h.