mirror of https://github.com/ARMmbed/mbed-os.git
[NUC472/M453] Fix PDMA error on timeout
parent
1da33e809f
commit
4e96f8b721
|
|
@ -165,7 +165,7 @@ static void pdma_vec(void)
|
|||
PDMA->INTSTS = reqto;
|
||||
|
||||
while (reqto) {
|
||||
int chn_id = nu_ctz(reqto) >> PDMA_INTSTS_REQTOFn_Pos;
|
||||
int chn_id = nu_ctz(reqto) - PDMA_INTSTS_REQTOFn_Pos;
|
||||
if (dma_chn_mask & (1 << chn_id)) {
|
||||
struct nu_dma_chn_s *dma_chn = dma_chn_arr + chn_id;
|
||||
if (dma_chn->handler && (dma_chn->event & DMA_EVENT_TIMEOUT)) {
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ static void pdma_vec(void)
|
|||
PDMA->INTSTS = reqto;
|
||||
|
||||
while (reqto) {
|
||||
int chn_id = nu_ctz(reqto) >> PDMA_INTSTS_REQTOFX_Pos;
|
||||
int chn_id = nu_ctz(reqto) - PDMA_INTSTS_REQTOFX_Pos;
|
||||
if (dma_chn_mask & (1 << chn_id)) {
|
||||
struct nu_dma_chn_s *dma_chn = dma_chn_arr + chn_id;
|
||||
if (dma_chn->handler && (dma_chn->event & DMA_EVENT_TIMEOUT)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue