summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-01dcd_pic32: Fix memory overwrite in incoming dataJerzy Kasenberg
When transfer was finished rx_fifo_read() read all that was to read RXPKTRDY was cleared allowing next packet to be received. Then xfer_complete was called. Interrupt for OUT endpoint was left enable, that would not be a problem if data was handled fast and new transfer was scheduled. For MSC when host sends a lot of data this interrupt that was enabled could cause epn_handle_rx_int() to be called after transfer was completed and next was not scheduled yet. Without TU_ASSERT that was added to detect this, incoming data was written past buffer provided by user code resulting in random memory corruption. This just blocks RX interrupt when transfer is finished, and also only unmasked rx interrupts are handled.
2022-05-01dcd_pic32: Add asserts transfer sanity checkJerzy Kasenberg
TU_ASSERTS added to detect transfer inconsistency.
2022-05-01Add TU_BREAKPOINT for mips architectureJerzy Kasenberg
_mips is provided by xc32-gcc
2022-04-26Merge pull request #1444 from Firefishy/gh-action-use-replacement-rubyHa Thach
Gh action use replacement ruby
2022-04-24GH Update to actions/checkout@v3Grant Slater
2022-04-24Replace actions/setup-ruby with replacement ruby/setup-rubyGrant Slater
2022-04-20Merge pull request #1440 from hathach/osal-queue-timeoutHa Thach
Osal queue timeout
2022-04-20update example for better cdc echohathach
2022-04-20add note for tud_task() behavior in freertos examplehathach
2022-04-20add tud_task_ext(), tuh_task_ext() as exteneded version that take timeout ↵hathach
and in_isr also allow exit tud_task,tuh_task after processing all events for running other background task for user
2022-04-20disable blank issues, add online docs linkhathach
2022-04-20fix freertos issue when 1 tick > 1 mshathach
2022-04-20add msec timeout to osal_queue_receive(), tud_task() and tuh_task() both ↵hathach
pending for event queue with timeout of 1 ms
2022-03-30Merge pull request #1413 from perigoso/perigoso-patch-1Ha Thach
Fix docs
2022-03-30Update requirements.txtRafael Silva
2022-03-28Merge pull request #1409 from hathach/remove-pycacheHa Thach
remove cxd56 __pycache__ folder
2022-03-28remove cxd56 __pycache-_ folderhathach
2022-03-20Merge pull request #1403 from hathach/host-edpt-xferHa Thach
Host edpt xfer
2022-03-19move code aroundhathach
2022-03-19rename usbh_edpt_open() to tuh_edpt_open()hathach
2022-03-19get bare example working with hid devicehathach
2022-03-19add parse config descriptor to examplehathach
move usbh_edpt_open() to public API, remove rhport from its signature
2022-03-18implement tuh_edpt_xfer() for non-controlhathach
2022-03-18move code aroundhathach
2022-03-18move daddr into xfer structhathach
2022-03-18update sync API, move timeout into xfer structhathach
remove tuh_control_xfer_sync()
2022-03-18minor update for control xferhathach
2022-03-18try to fix cihathach
2022-03-17rename user_arg to user_datahathach
2022-03-17add CFG_TUH_API_EDPT_XFER to enable generic edpt xferhathach
2022-03-17rename tuh_control_xfer_t to tuh_xfer_thathach
2022-03-17add actual_len supportedhathach
2022-03-17slightly change the signature of tuh_control_xferhathach
2022-03-17update examplehathach
2022-03-17change return type of callback to voidhathach
2022-03-17remove const in xfer callbackhathach
2022-03-17move result into transfer structhathach
2022-03-17change tuh_control_xfer_t structhathach
2022-03-16update hid host to use new control xfer for set confighathach
2022-03-16fix -Wnull-dereference warningshathach
2022-03-15Merge pull request #1397 from hathach/rework-host-control-xferHa Thach
Rework host control xfer
2022-03-13add synchronous (blocking) support for usbh control transferhathach
- add synchronous version of all get descriptor API - update bare example to use sync API for string descriptor - change order of index, language_id in tuh_descriptor_get_string() to match similar API of libusb - add index to tuh_descriptor_get_hid_report()
2022-03-12Update bug_report.ymlHa Thach
2022-03-12minor changeshathach
2022-03-12misplace fallthroughhathach
2022-03-12rework usbh enumeration process using user arg from control transfer as statehathach
2022-03-11update hid,msc to new usbh control APIhathach
2022-03-11rework usbh control xferhathach
- change API of tuh_control_xfer and its callback - rename tuh_control_complete_cb_t to tuh_control_xfer_cb_t - add user argument to control callback - migrate usbh and hub
2022-03-11Merge pull request #1394 from hathach/merge-host-exampleHa Thach
merge device_info into bare_api example
2022-03-11merge device_info into bare_api examplehathach