Pinscape Controller version 1 fork. This is a fork to allow for ongoing bug fixes to the original controller version, from before the major changes for the expansion board project.
Dependencies: FastIO FastPWM SimpleDMA mbed
Fork of Pinscape_Controller by
Revision 66:cbb142cbf426, committed 2016-02-12
- Comitter:
- mjr
- Date:
- Fri Feb 12 21:48:08 2016 +0000
- Parent:
- 65:3b280c430660
- Child:
- 67:4353ba51a465
- Commit message:
- Remove EP0 stall BDT reset entirely - fix to compatibility problem
Changed in this revision
USBDevice/USBDevice/USBHAL_KL25Z.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBDevice/USBDevice/USBHAL_KL25Z.cpp Fri Feb 12 21:46:21 2016 +0000 +++ b/USBDevice/USBDevice/USBHAL_KL25Z.cpp Fri Feb 12 21:48:08 2016 +0000 @@ -646,23 +646,7 @@ { // if endpoint 0 is stalled, explicitly un-stall it if (USB0->ENDPOINT[0].ENDPT & USB_ENDPT_EPSTALL_MASK) - { - // clear the stall bit in the endpoint register USB0->ENDPOINT[0].ENDPT &= ~USB_ENDPT_EPSTALL_MASK; - - // take ownership of the RX and TX BDTs - bdt[EP_BDT_IDX(0, RX, EVEN)].info &= ~(BD_OWN_MASK | BD_STALL_MASK | BD_DATA01_MASK); - bdt[EP_BDT_IDX(0, TX, EVEN)].info &= ~(BD_OWN_MASK | BD_STALL_MASK | BD_DATA01_MASK); - bdt[EP_BDT_IDX(0, RX, EVEN)].byte_count = MAX_PACKET_SIZE_EP0; - bdt[EP_BDT_IDX(0, TX, EVEN)].byte_count = MAX_PACKET_SIZE_EP0; - - // start a new read on EP0OUT - bdt[EP_BDT_IDX(0, RX, EVEN)].info = BD_OWN_MASK | BD_DTS_MASK; - - // reset the DATA0/1 bit to 1 on EP0IN and EP0OUT, by the same - // logic as in realiseEndpoint() - Data1 |= 0x03; - } // clear the busy-suspend bit to resume token processing USB0->CTL &= ~USB_CTL_TXSUSPENDTOKENBUSY_MASK;