summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-09-28synopsys: Fix fifo allocation schemaJerzy Kasenberg
Recommended FIFO allocation schema includes 2 maximum endpoint sizes. Comment suggested that this is the case while it would work according to this description only in checked endpoints were ascending sizes. Also two same size endpoints would be counted as one. That is fixed by way sz is filled. Calculation used too much modulo operation while single division was enough to account for odd FIFO sizes. Extra space that is evenly distributed between Bulk and control endpoints was incorrectly calculated it could prevent allocation of ISO endpoint FIFO when bulk endpoints existed with smaller endpoint numbers. Minimum endpoint FIFO size is 16 32bit words, FIFO space requirement is now observed.
2020-09-26Change modulo substitute to while ( idx >= depth) idx -= depth;Reinhard Panhuber
2020-09-25Fix wrong comments, rename pos to offset, rename overflow().Reinhard Panhuber
2020-09-23Fix bug in modulo substitute.Reinhard Panhuber
2020-09-23Change maximum depth to 2^15 which allows for a fast modulo substitute.Reinhard Panhuber
Thus, however, overflows are detectable only for one time FIFO depth.
2020-09-23Merge pull request #512 from mzero/fix-midi-sysexHa Thach
Fix a bug in writing SysEx messages.
2020-09-19Final cleanup.Reinhard Panhuber
2020-09-15Tested, working.Reinhard Panhuber
2020-09-15nrf52: Fix edpt_dma_start() wrong condition checkJerzy Kasenberg
Operator < used in while condition was obviously incorrect. Loop starts with checking if unsigned variable is less then 0. This condition is always false. This reverses condition to follow intention of of the code.
2020-09-14Merge pull request #508 from hathach/fix-edpt-raceHa Thach
Fix edpt xfer race condition
2020-09-14Implementation done, yet to be tested.Reinhard Panhuber
2020-09-14more consthathach
2020-09-14cdc device: claim endpoint before checking fifo availabilityhathach
- add pre-check to reduce mutex lock in usbd_edpt_claim
2020-09-13Update midi_device.cMark Lentczner
Fix a bug in writing SysEx messages. At the start of a new USB packet (4 bytes), while in the middle of a SysEx, the code mistakenly set the buffer length to 4, not the target length. As a consequence, the 3rd and 4th bytes from the last packet were included, after every byte of the SysEx after the first packet of three. The fix is simple, as it was just a typo, as can bee seen from the other branches in the same section of if/else statements: At the start of a new packet, the code should set up the target length... the buffer length should be left at 2 (as set on line 180).
2020-09-13correct the TUD_HID_REPORT_DESC_GAMEPADhathach
2020-09-12typohathach
2020-09-11clean uphathach
2020-09-10update claim edpt for hid and midihathach
2020-09-10Set new define because of build failureJan Dümpelmann
2020-09-09typohathach
2020-09-09clean uphathach
2020-09-09update cdc edpt readhathach
2020-09-09introduce optional usbd_edpt_claim, usbd_edpt_release which can be used to ↵hathach
gain exclusive access to usbd_edpt_xfer
2020-09-07move functions aroundhathach
2020-09-07clean uphathach
2020-09-07rework usbh control transferhathach
use series of complete callback instead of blocking semaphore, which is more noOS friendly. still working with hid host
2020-09-06Start of sampling works.Reinhard Panhuber
2020-09-06change xfer_cb return type from void to boolhathach
2020-09-06replacing hcd_pipe_xfer by usbh_edpt_xferhathach
2020-09-05clean up enum taskhathach
2020-09-05refactor hub classhathach
- separate connect/disconnect handling - hub work with full speed, but doesn't seem to work with Low speed device (with mcb1800) - need to update msc host after migrating from isr to xfer_cb (blocked at inquiry)
2020-09-05more clean uphathach
2020-09-05add in_isr to all hcd event functionshathach
2020-09-05clean uphathach
2020-09-05refactor extract parse_configuration_descriptor()hathach
2020-09-05remove usbh control mutexhathach
2020-09-05update example to test with mousehathach
2020-09-05defer xfer_isr to xfer_cbhathach
2020-09-05clean uphathach
2020-09-04Merge remote-tracking branch 'upstream/master' into uac2Reinhard Panhuber
2020-09-04Add functionality to abort an ongoing transferJan Dümpelmann
2020-09-04clean uphathach
2020-09-03more hid host workhathach
2020-09-03Remove tud_audio_n_write_ep_in_buffer() as long as ISO EPs are not RBs.Reinhard Panhuber
2020-09-03New function to modify fifo overwritabilityJan Dümpelmann
2020-09-03Turn transmit fifo overwritable in no DTR modeJan Dümpelmann
2020-09-03Remove connected check for write flushingJan Dümpelmann
2020-09-03fix #449 remove obsolete pipehandle from hid hosthathach
2020-09-03rename tuh_isr/hcd_isr to tuh_int_handler/hcd_int_handlerhathach
2020-09-02revert to use float-abihathach
define __USE_CMSIS instead of __USE_LPCOPEN will have startup enable FPU on startup properly. Although it is only relevant to lpx43/40 series, change all to __USE_CMSIS for consistency