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
This commit is contained in:
cinsights 2021-04-20 22:22:00 +00:00
parent f9de96bbd1
commit 9a76ba1bad
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}
/**