Commit 4c5ac51
committed
Deleting superflous call to 'usbd.epBank0ResetReady' - this function is already called within 'USBDeviceClass::ISRHandler' and 'USBDeviceClass::recvControl' is called by 'handleClassInterfaceSetup' within the ISR
Bugfix - removal of delay within USBDeviceClass::ISRHandler
- remove stall requests of endpoint #0 OUT (bank #0) if present
- copy data from cache into structure instead of referencing it via pointer. When referencing via pointer the content of the structure can change if new data is written to the buffer.
- Fixing MULTI_PACKET_SIZE parameter of call to 'usbd.epBank0SetMultiPacketSize' within 'USBDeviceClass::armRecvCtrlOUT' to correct size, MULTI_PACKET_SIZE should not be set to a value < SIZE, this means at least to 64.
- resetting byte count for endpoint #0 seems to eliminate issue of the bootloader not being triggered.1 parent f6ae6d8 commit 4c5ac51
1 file changed
+30
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | 472 | | |
476 | 473 | | |
477 | 474 | | |
| |||
551 | 548 | | |
552 | 549 | | |
553 | 550 | | |
554 | | - | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
555 | 562 | | |
556 | 563 | | |
557 | 564 | | |
| |||
830 | 837 | | |
831 | 838 | | |
832 | 839 | | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
833 | 843 | | |
834 | 844 | | |
835 | 845 | | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
841 | 859 | | |
842 | 860 | | |
843 | 861 | | |
844 | | - | |
| 862 | + | |
845 | 863 | | |
846 | | - | |
| 864 | + | |
847 | 865 | | |
848 | 866 | | |
849 | | - | |
| 867 | + | |
850 | 868 | | |
851 | 869 | | |
852 | 870 | | |
| |||
0 commit comments