Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
vsf_dwcotg_dcd.c fix
Browse files Browse the repository at this point in the history
  • Loading branch information
talpachen committed Oct 16, 2020
1 parent b006a8e commit 12dc681
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/vsf/component/usb/driver/otg/dwcotg/vsf_dwcotg_dcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ vsf_err_t vk_dwcotg_dcd_ep_transaction_set_data_size(vk_dwcotg_dcd_t *dwcotg_dcd

if (!size) {
in_regs->dieptsiz = 0x1ul << 19;
in_regs->diepctl |= USB_OTG_DIEPCTL_EPENA | USB_OTG_DIEPCTL_CNAK;
}
in_regs->diepctl |= USB_OTG_DIEPCTL_EPENA | USB_OTG_DIEPCTL_CNAK;

return VSF_ERR_NONE;
}
Expand All @@ -518,7 +518,6 @@ vsf_err_t vk_dwcotg_dcd_ep_transaction_write_buffer(vk_dwcotg_dcd_t *dwcotg_dcd,
*dwcotg_dcd->reg.dfifo[ep_idx] = data;
}
dwcotg_dcd->reg.dev.global_regs->dtknqr4_fifoemptymsk |= 1 << ep_idx;
in_regs->diepctl |= USB_OTG_DIEPCTL_EPENA | USB_OTG_DIEPCTL_CNAK;
return VSF_ERR_NONE;
}

Expand Down Expand Up @@ -557,7 +556,6 @@ void vk_dwcotg_dcd_irq(vk_dwcotg_dcd_t *dwcotg_dcd)
struct dwcotg_dev_in_ep_regs_t *in_regs = dwcotg_dcd->reg.dev.ep.in_regs;
struct dwcotg_dev_out_ep_regs_t *out_regs = dwcotg_dcd->reg.dev.ep.out_regs;
uint_fast32_t intsts = global_regs->gintmsk | USB_OTG_GINTSTS_CMOD;
vk_dwcotg_dcd_trans_t *trans;

intsts &= global_regs->gintsts;

Expand Down

0 comments on commit 12dc681

Please sign in to comment.