Skip to content
Commit bbe8e63c authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Anas Nashif
Browse files

spi: stm32: deduplicate code creating SPI instances



Create new instances of SPI using single STM32_SPI_INIT() macro
invocation, similar as it is done for STM32 UART driver. Add also
implicit '#ifdef CONFIG_SPI_id' check, so it further reduces required
lines of code for each SPI instance definition.

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@grinn-global.com>
parent 995e3676
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment