Skip to content
Snippets Groups Projects
Commit 452920f6 authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

drivers/soft_spi: use new driver params scheme

parent a3bac82b
No related branches found
No related tags found
No related merge requests found
......@@ -35,21 +35,17 @@ extern "C" {
#define SOFT_SPI_PARAM_CLK (GPIO_PIN(0, 1))
#endif
#define SOFT_SPI_PARAMS_DEFAULT {\
.miso_pin = SOFT_SPI_PARAM_MISO,\
.mosi_pin = SOFT_SPI_PARAM_MOSI,\
.clk_pin = SOFT_SPI_PARAM_CLK,\
}
#ifndef SOFT_SPI_PARAMS
#define SOFT_SPI_PARAMS { .miso_pin = SOFT_SPI_PARAM_MISO, \
.mosi_pin = SOFT_SPI_PARAM_MOSI, \
.clk_pin = SOFT_SPI_PARAM_CLK }
#endif
/**
* @brief Sotware SPI port descriptor array
*/
static soft_spi_conf_t soft_spi_config[] = {
#ifdef SOFT_SPI_PARAMS_CUSTOM
SOFT_SPI_PARAMS_CUSTOM,
#else
SOFT_SPI_PARAMS_DEFAULT,
#endif
SOFT_SPI_PARAMS,
};
#ifdef __cplusplus
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment