summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-10-09update tud_hid_boot_mode_cb/tud_hid_set_idle_cb support mul interfaceshathach
also clean up code
2020-10-09rename multiple hid callbackhathach
2020-10-09Merge pull request #524 from zlittell/f_MultipleHIDInterfacesHa Thach
Feature multiple hid interfaces
2020-10-08Fix tu_verify argsZachery Littell
2020-10-08Cleanup per review on PRZachery Littell
2020-10-07fix variable names. add itf n callbacks to multihidZachery Littell
2020-10-07Merge pull request #529 from gh2o/stm32-raceHa Thach
stm32 fsdev: fix ISTR and CTR_RX/TX race conditions
2020-10-06stm32: fix ISTR and CTR_RX/TX race conditionsGavin Li
2020-10-06Merge pull request #516 from PanRe/tusb_fifo_unmaksed_pointersHa Thach
Tusb fifo unmaksed pointers
2020-10-02fix simple pull request comments. Implement descriptor index hack.Zachery Littell
2020-10-02Merge pull request #518 from kasjer/kasjer/nrf5x-iso-supportHa Thach
nrf5x iso support
2020-10-01add index to report descriptor callback. this is breaking and needs to be ↵Zachery Littell
reviewed
2020-10-01create N functions and inlines for multi hid interfacesZachery Littell
2020-10-01nrf5x: Add support for ISO endpointsJerzy Kasenberg
ISO endpoints were not covered so far by the driver code. This adds support for ISO IN and OUT endpoint handling. Registers for ISO IN(OUT) endpoints are placed just after normal IN(OUT) so in some cases common code could be used for handling all type of transfers. Generally code synchronizes ISO endpoint handling to SOF interrupt. This code does not change the way of how non-ISO endpoints are treated. Code uses strategy outlined in nRF52840 Produce Specification v1.0 sections 6.35.11.1 and 6.35.11.2.
2020-10-01nrf5x: Increase size of mps to 16 bitsJerzy Kasenberg
msp stores max packet size. For ISO endpoints 8 bits is not enough so it's changed to 16 bits.
2020-10-01nrf5x: Add dcd_edpt_closeJerzy Kasenberg
Closing endpoints can be important when there are alternate instances. This adds functionality of closing endpoints similar to what exists in other drivers.
2020-10-01device: Make number of endpoints configurableJerzy Kasenberg
Currently number of endpoints was hard coded to 8. NRF52 has 9 IN and 9 OUT endpoints. ISO endpoints are 0x08 and 0x88 and without this change those two ISO endpoint could not be used.
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-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-04clean uphathach
2020-09-03more hid host workhathach
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
2020-09-01add more logging to host stackhathach
tested host with lpc4357, don't use fpu with lpc m4 since it seems to cause hardfault (stack does not make use of fpu anyway).
2020-09-01Merge branch 'master' into update-hosthathach
2020-08-24fix typohathach
2020-08-24improve midihathach
- fix #436 tud_midi_rx_cb() not invoked - fix xfer_cb() not handle ep in - add ZLP if needed
2020-08-24Merge pull request #486 from kasjer/kasjer/add-endpoint-close-to-synopsysHa Thach
Add dcd_edpt_close() to synopsys
2020-08-22add OPT_MCU_SAMD11hathach
skip ci build for example that need more ROM/RAM could fit into SAMD11
2020-08-21Merge pull request #434 from gh2o/masterHa Thach
Add TX callback to CDC device