RP - more DMA INTx0/1 register block changes

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14243 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
cinsights 2021-04-20 15:20:59 +00:00
parent 151bbee808
commit 9bb5c3825d
2 changed files with 16 additions and 9 deletions

View File

@ -114,12 +114,19 @@ typedef struct {
DMA_Channel_Typedef CH[12];
__I uint32_t resvd300[64];
__IO uint32_t INTR;
struct {
__IO uint32_t INTE;
__IO uint32_t INTF;
__IO uint32_t INTS;
// struct {
// __IO uint32_t INTE;
// __IO uint32_t INTF;
// __IO uint32_t INTS;
// __I uint32_t resvd10;
// } C[2];
__IO uint32_t INTE0;
__IO uint32_t INTF0;
__IO uint32_t INTS0;
__I uint32_t resvd10;
} C[2];
__IO uint32_t INTE1;
__IO uint32_t INTF1;
__IO uint32_t INTS1;
__IO uint32_t TIMER[4];
__IO uint32_t MULTI_CHAN_TRIGGER;
__IO uint32_t SNIFF_CTRL;

View File

@ -122,8 +122,8 @@ OSAL_IRQ_HANDLER(RP_DMA_IRQ_0_HANDLER) {
OSAL_IRQ_PROLOGUE();
/* Getting and clearing pending interrupts for core 0.*/
ints = DMA->C[0].INTS;
DMA->C[0].INTS = ints;
ints = DMA->INTS0;
DMA->INTS0 = ints;
/* Scanning sources.*/
dmachp = __rp_dma_channels;
@ -150,8 +150,8 @@ OSAL_IRQ_HANDLER(RP_DMA_IRQ_1_HANDLER) {
OSAL_IRQ_PROLOGUE();
/* Getting and clearing pending interrupts for core 1.*/
ints = DMA->C[1].INTS;
DMA->C[1].INTS = ints;
ints = DMA->INTS1;
DMA->INTS1 = ints;
/* Scanning sources.*/
dmachp = __rp_dma_channels;