sdcard_spi_params.h File Reference

Default parameters for sdcard_spi driver. More...

Detailed Description

Default parameters for sdcard_spi driver.

Author
Michel Rottleuthner miche.nosp@m.l.ro.nosp@m.ttleu.nosp@m.thne.nosp@m.r@haw.nosp@m.-ham.nosp@m.burg..nosp@m.de

Definition in file sdcard_spi_params.h.

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

Go to the source code of this file.

Variables

static const sdcard_spi_params_t sdcard_spi_params []
 sdcard_spi configuration More...
 

Set default configuration parameters for the sdcard_spi driver

#define SDCARD_SPI_PARAM_SPI   SPI_DEV(0)
 
#define SDCARD_SPI_PARAM_CS   GPIO_PIN(2,4)
 
#define SDCARD_SPI_PARAM_CLK   GPIO_PIN(2,5)
 
#define SDCARD_SPI_PARAM_MOSI   GPIO_PIN(2,6)
 
#define SDCARD_SPI_PARAM_MISO   GPIO_PIN(2,7)
 
#define SDCARD_SPI_PARAM_POWER   (GPIO_UNDEF)
 
#define SDCARD_SPI_PARAM_POWER_AH   (true)
 treated as 'don't care' if SDCARD_SPI_PARAM_POWER is GPIO_UNDEF
 
#define SDCARD_SPI_PARAMS
 

Macro Definition Documentation

◆ SDCARD_SPI_PARAMS

#define SDCARD_SPI_PARAMS
Value:
{ .spi_dev = SDCARD_SPI_PARAM_SPI, \
.cs = SDCARD_SPI_PARAM_CS, \
.clk = SDCARD_SPI_PARAM_CLK, \
.mosi = SDCARD_SPI_PARAM_MOSI, \
.miso = SDCARD_SPI_PARAM_MISO, \
.power = SDCARD_SPI_PARAM_POWER, \
.power_act_high = SDCARD_SPI_PARAM_POWER_AH }

Definition at line 56 of file sdcard_spi_params.h.

Variable Documentation

◆ sdcard_spi_params

const sdcard_spi_params_t sdcard_spi_params[]
static
Initial value:
= {
SDCARD_SPI_PARAMS
}

sdcard_spi configuration

Definition at line 69 of file sdcard_spi_params.h.

SDCARD_SPI_PARAM_POWER_AH
#define SDCARD_SPI_PARAM_POWER_AH
treated as 'don't care' if SDCARD_SPI_PARAM_POWER is GPIO_UNDEF
Definition: sdcard_spi_params.h:52