diff options
Diffstat (limited to 'chip/stm32/spi_master.c')
-rw-r--r-- | chip/stm32/spi_master.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chip/stm32/spi_master.c b/chip/stm32/spi_master.c index 86185680cf..8943c0c682 100644 --- a/chip/stm32/spi_master.c +++ b/chip/stm32/spi_master.c @@ -27,7 +27,7 @@ /* The second (and third if available) SPI port are used as master */ static stm32_spi_regs_t *SPI_REGS[] = { -#ifdef CONFIG_STM32_SPI1_MASTER +#ifdef CONFIG_STM32_SPI1_CONTROLLER STM32_SPI1_REGS, #endif STM32_SPI2_REGS, @@ -39,7 +39,7 @@ static stm32_spi_regs_t *SPI_REGS[] = { #ifdef CHIP_FAMILY_STM32L4 /* DMA request mapping on channels */ static uint8_t dma_req[ARRAY_SIZE(SPI_REGS)] = { -#ifdef CONFIG_STM32_SPI1_MASTER +#ifdef CONFIG_STM32_SPI1_CONTROLLER /* SPI1 */ 1, #endif /* SPI2 */ 1, @@ -59,7 +59,7 @@ static struct mutex spi_mutex[ARRAY_SIZE(SPI_REGS)]; #endif static const struct dma_option dma_tx_option[] = { -#ifdef CONFIG_STM32_SPI1_MASTER +#ifdef CONFIG_STM32_SPI1_CONTROLLER { STM32_DMAC_SPI1_TX, (void *)&STM32_SPI1_REGS->dr, STM32_DMA_CCR_MSIZE_8_BIT | STM32_DMA_CCR_PSIZE_8_BIT @@ -81,7 +81,7 @@ static const struct dma_option dma_tx_option[] = { }; static const struct dma_option dma_rx_option[] = { -#ifdef CONFIG_STM32_SPI1_MASTER +#ifdef CONFIG_STM32_SPI1_CONTROLLER { STM32_DMAC_SPI1_RX, (void *)&STM32_SPI1_REGS->dr, STM32_DMA_CCR_MSIZE_8_BIT | STM32_DMA_CCR_PSIZE_8_BIT |