Hypnotriod / midi-box-stm32

stm32 usb midi driver demo application
49 stars 6 forks source link

Endpoint inconsistency #11

Closed x-moe-x closed 1 month ago

x-moe-x commented 1 month ago

Hi,

thanks for the great work!

I found an inconsistency regarding endpoint configuration: In the descriptor the EPs are configured as BULK, in USBD_MIDI_Init however they are opened as Type Interrupt.

Kind regards,

Moe

Hypnotriod commented 1 month ago

I see. This could be the reason of that Double Buffering issue... Could you please confirm that replacing USBD_EP_TYPE_INTR with USBD_EP_TYPE_BULK in USBD_MIDI_Init -> USBD_LL_OpenEP calls does not brake anything?

Hypnotriod commented 1 month ago

I'll try to test it over the weekend and commit the fix.

Hypnotriod commented 1 month ago

Anyway. Have checked it on the device and seems no issues so far. Did the commit