From 9a76ba1bad80cde29caf93603bc2ee58834c0c00 Mon Sep 17 00:00:00 2001 From: cinsights Date: Tue, 20 Apr 2021 22:22:00 +0000 Subject: [PATCH] RP - Change DMA macros for revised INTxn layout git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14247 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/RP/LLD/DMAv1/rp_dma.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/os/hal/ports/RP/LLD/DMAv1/rp_dma.h b/os/hal/ports/RP/LLD/DMAv1/rp_dma.h index 46861fa58..01d850055 100644 --- a/os/hal/ports/RP/LLD/DMAv1/rp_dma.h +++ b/os/hal/ports/RP/LLD/DMAv1/rp_dma.h @@ -178,10 +178,10 @@ __STATIC_INLINE uint32_t dmaChannelGetAndClearInterrupts(const rp_dma_channel_t __STATIC_INLINE void dmaChannelEnableInterruptX(const rp_dma_channel_t *dmachp) { if (SIO->CPUID == 0U) { - dmachp->dma->SET.C[0].INTE = dmachp->chnmask; + dmachp->dma->SET.INTE0 = dmachp->chnmask; } else { - dmachp->dma->SET.C[1].INTE = dmachp->chnmask; + dmachp->dma->SET.INTE1 = dmachp->chnmask; } } @@ -195,8 +195,8 @@ __STATIC_INLINE void dmaChannelEnableInterruptX(const rp_dma_channel_t *dmachp) */ __STATIC_INLINE void dmaChannelDisableInterruptX(const rp_dma_channel_t *dmachp) { - dmachp->dma->CLR.C[0].INTE = dmachp->chnmask; - dmachp->dma->CLR.C[1].INTE = dmachp->chnmask; + dmachp->dma->CLR.INTE0 = dmachp->chnmask; + dmachp->dma->CLR.INTE1 = dmachp->chnmask; } /**