mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 03:32:49 +01:00
edbf59e37e
The default SPI device configuration allows to define up to two SPI devices `SPI_DEV(0)` and `SPI_DEV(1)`. `SPI_DEV(0)` is always defined if the SPI peripheral is enabled by the module `periph_spi`. The second SPI device `SPI_DEV(1)` is only defined if `SPI_DEV_1_USED` is defined by the board. This allows to use the default configuration with one or two SPI devices depending on whether other peripherals are enabled that would collide with the SPI devices. Furthermore, the CS signal in the SPI configuration is given by a define that can be overriden with another pin if the default CS signal is connected to an unused hardware. |
||
---|---|---|
.. | ||
board_common.h | ||
cfg_i2c_default.h | ||
cfg_spi_default.h | ||
cfg_timer_default.h | ||
cfg_uart_default.h | ||
periph_common_conf.h |