18#ifndef MFRC522_PARAMS_H
19#define MFRC522_PARAMS_H
36#ifndef MFRC522_PARAM_SPI_DEV
37#define MFRC522_PARAM_SPI_DEV SPI_DEV(0)
39#ifndef MFRC522_PARAM_SPI_CLK
40#define MFRC522_PARAM_SPI_CLK SPI_CLK_5MHZ
42#ifndef MFRC522_PARAM_SCK_PIN
43#define MFRC522_PARAM_SCK_PIN GPIO_PIN(0, 18)
45#ifndef MFRC522_PARAM_MISO_PIN
46#define MFRC522_PARAM_MISO_PIN GPIO_PIN(0, 19)
48#ifndef MFRC522_PARAM_MOSI_PIN
49#define MFRC522_PARAM_MOSI_PIN GPIO_PIN(0, 23)
51#ifndef MFRC522_PARAM_CS_PIN
52#define MFRC522_PARAM_CS_PIN GPIO_PIN(0, 5)
54#ifndef MFRC522_PARAM_RST_PIN
55#define MFRC522_PARAM_RST_PIN GPIO_PIN(0, 17)
59#define MFRC522_PARAMS \
61 .spi_dev = MFRC522_PARAM_SPI_DEV, \
62 .spi_clk = MFRC522_PARAM_SPI_CLK, \
63 .sck_pin = MFRC522_PARAM_SCK_PIN, \
64 .miso_pin = MFRC522_PARAM_MISO_PIN, \
65 .mosi_pin = MFRC522_PARAM_MOSI_PIN, \
66 .cs_pin = MFRC522_PARAM_CS_PIN, \
67 .rst_pin = MFRC522_PARAM_RST_PIN, \
static const mfrc522_params_t mfrc522_params[]
Allocate some memory to store the actual configuration.
#define MFRC522_PARAMS
Struct with default configuration parameters.
Register definitions for the MFRC522 controller.
Low-level SPI peripheral driver interface definition.
MFRC522 device initialization parameters.