mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/soft_spi: use new driver params scheme
This commit is contained in:
parent
a3bac82bf3
commit
452920f6e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user