insane-adding-machines / unicore-mx

UniCore-MX | Universal Core for ARM Cortex-M0/0+/3/4/7/X
GNU General Public License v3.0
50 stars 8 forks source link

!usbd:out:zero - force generating IN transfer with zero len #51

Closed alexrayne closed 7 years ago

alexrayne commented 7 years ago

URB with zero-len without USBD_FLAG_SHORT_PACKET now ommited.

this behaviour is conflicts with intention of manual short packets handling - for such case URB goes without USBD_FLAG_SHORT_PACKET, and zero-length MUST be achievable

kuldeepdhaka commented 7 years ago

calc_pktcnt() is already doing that.

alexrayne commented 7 years ago

No, there is not.

kuldeepdhaka commented 7 years ago

https://github.com/alexrayne/unicore-mx.kuldeep/blob/484b6463287be9a5635cac5021a45bcffb8c7618/lib/usbd/backend/usbd_dwc_otg.c#L524 https://github.com/alexrayne/unicore-mx.kuldeep/blob/484b6463287be9a5635cac5021a45bcffb8c7618/lib/usbd/backend/usbd_dwc_otg.c#L422

alexrayne commented 7 years ago

Ок