Loading...
Searching...
No Matches
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.

Variables

static const at25xxx_params_t at25xxx_params []
 AT25XXX configuration.
 

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
 

Macro Definition Documentation

◆ AT25XXX_PARAM_ADDR_LEN

#define AT25XXX_PARAM_ADDR_LEN   (24) /* Address length, in bits */

Definition at line 52 of file at25xxx_params.h.

◆ AT25XXX_PARAM_CS

#define AT25XXX_PARAM_CS   (GPIO_PIN(0, 0))

Definition at line 40 of file at25xxx_params.h.

◆ AT25XXX_PARAM_HOLD

#define AT25XXX_PARAM_HOLD   (GPIO_UNDEF)

Definition at line 46 of file at25xxx_params.h.

◆ AT25XXX_PARAM_PAGE_SIZE

#define AT25XXX_PARAM_PAGE_SIZE   (256) /* Page size, in bytes */

Definition at line 55 of file at25xxx_params.h.

◆ AT25XXX_PARAM_SIZE

#define AT25XXX_PARAM_SIZE   (128 * 1024UL) /* EEPROM size, in bytes */

Definition at line 49 of file at25xxx_params.h.

◆ AT25XXX_PARAM_SPI

#define AT25XXX_PARAM_SPI   (SPI_DEV(0))

Definition at line 34 of file at25xxx_params.h.

◆ AT25XXX_PARAM_SPI_CLK

#define AT25XXX_PARAM_SPI_CLK   (SPI_CLK_5MHZ)

Definition at line 37 of file at25xxx_params.h.

◆ AT25XXX_PARAM_WP

#define AT25XXX_PARAM_WP   (GPIO_UNDEF)

Definition at line 43 of file at25xxx_params.h.

◆ 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 59 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.