Loading...
Searching...
No Matches
soft_spi_params.h File Reference

Software SPI configuration. More...

Detailed Description

Software SPI configuration.

Author
Markus Blechschmidt Marku.nosp@m.s.Bl.nosp@m.echsc.nosp@m.hmid.nosp@m.t@haw.nosp@m.-ham.nosp@m.burg..nosp@m.de

Definition in file soft_spi_params.h.

#include "soft_spi.h"
+ Include dependency graph for soft_spi_params.h:

Go to the source code of this file.

#define SOFT_SPI_PARAM_MISO   (GPIO_UNDEF)
 
#define SOFT_SPI_PARAM_MOSI   (GPIO_PIN(0, 0))
 
#define SOFT_SPI_PARAM_CLK   (GPIO_PIN(0, 1))
 
#define SOFT_SPI_PARAMS
 
#define SOFT_SPI_NUMOF   ARRAY_SIZE(soft_spi_config)
 Number of software SPI buses.
 
static soft_spi_conf_t soft_spi_config []
 Software SPI port descriptor array.
 

Macro Definition Documentation

◆ SOFT_SPI_NUMOF

#define SOFT_SPI_NUMOF   ARRAY_SIZE(soft_spi_config)

Number of software SPI buses.

Definition at line 54 of file soft_spi_params.h.

◆ SOFT_SPI_PARAM_CLK

#define SOFT_SPI_PARAM_CLK   (GPIO_PIN(0, 1))

Definition at line 35 of file soft_spi_params.h.

◆ SOFT_SPI_PARAM_MISO

#define SOFT_SPI_PARAM_MISO   (GPIO_UNDEF)

Definition at line 29 of file soft_spi_params.h.

◆ SOFT_SPI_PARAM_MOSI

#define SOFT_SPI_PARAM_MOSI   (GPIO_PIN(0, 0))

Definition at line 32 of file soft_spi_params.h.

◆ SOFT_SPI_PARAMS

#define SOFT_SPI_PARAMS
Value:
{ .miso_pin = SOFT_SPI_PARAM_MISO, \
.mosi_pin = SOFT_SPI_PARAM_MOSI, \
.clk_pin = SOFT_SPI_PARAM_CLK }

Definition at line 39 of file soft_spi_params.h.

Variable Documentation

◆ soft_spi_config

soft_spi_conf_t soft_spi_config[]
static
Initial value:
= {
SOFT_SPI_PARAMS,
}

Software SPI port descriptor array.

Definition at line 47 of file soft_spi_params.h.