File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ static void pdma_vec(void)
165
165
PDMA -> INTSTS = reqto ;
166
166
167
167
while (reqto ) {
168
- int chn_id = nu_ctz (reqto ) >> PDMA_INTSTS_REQTOFn_Pos ;
168
+ int chn_id = nu_ctz (reqto ) - PDMA_INTSTS_REQTOFn_Pos ;
169
169
if (dma_chn_mask & (1 << chn_id )) {
170
170
struct nu_dma_chn_s * dma_chn = dma_chn_arr + chn_id ;
171
171
if (dma_chn -> handler && (dma_chn -> event & DMA_EVENT_TIMEOUT )) {
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ static void pdma_vec(void)
165
165
PDMA -> INTSTS = reqto ;
166
166
167
167
while (reqto ) {
168
- int chn_id = nu_ctz (reqto ) >> PDMA_INTSTS_REQTOFX_Pos ;
168
+ int chn_id = nu_ctz (reqto ) - PDMA_INTSTS_REQTOFX_Pos ;
169
169
if (dma_chn_mask & (1 << chn_id )) {
170
170
struct nu_dma_chn_s * dma_chn = dma_chn_arr + chn_id ;
171
171
if (dma_chn -> handler && (dma_chn -> event & DMA_EVENT_TIMEOUT )) {
You can’t perform that action at this time.
0 commit comments