mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
arch/arm/src/imxrt/imxrt_lpspi.c: Fix some copy-paste errors for LPSPI3 and LPSPI4.
This commit is contained in:
@@ -325,6 +325,10 @@ static struct imxrt_lpspidev_s g_lpspi3dev =
|
|||||||
#ifdef CONFIG_IMXRT_LPSPI_INTERRUPTS
|
#ifdef CONFIG_IMXRT_LPSPI_INTERRUPTS
|
||||||
.spiirq = IMXRT_IRQ_LPSPI3,
|
.spiirq = IMXRT_IRQ_LPSPI3,
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_IMXRT_LPSPI_DMA
|
||||||
|
.rxch = DMAMAP_LPSPI3_RX,
|
||||||
|
.txch = DMAMAP_LPSPI3_TX,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -368,8 +372,8 @@ static struct imxrt_lpspidev_s g_lpspi4dev =
|
|||||||
.spiirq = IMXRT_IRQ_LPSPI4,
|
.spiirq = IMXRT_IRQ_LPSPI4,
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_IMXRT_LPSPI_DMA
|
#ifdef CONFIG_IMXRT_LPSPI_DMA
|
||||||
.rxch = DMAMAP_LPSPI1_RX,
|
.rxch = DMAMAP_LPSPI4_RX,
|
||||||
.txch = DMAMAP_LPSPI1_TX,
|
.txch = DMAMAP_LPSPI4_TX,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user