summaryrefslogtreecommitdiff
path: root/src
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-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-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-19rename usbh_edpt_open() to tuh_edpt_open()hathach
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-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-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-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 device_info into bare_api examplehathach
2022-03-11remove usbh_control.chathach
2022-03-10fix build warninghathach
2022-03-10fix enumeration issue when plugging hub with multiple devices attachedhathach
2022-03-10refactor and integrate usbh control xfer back to usbh.chathach
fix enumeration with hub when reset port before set address
2022-03-10remove obsolete device statehathach
2022-03-10refactor host control xferhathach
2022-03-10merge control stage host and device valuehathach
2022-03-10more clean uphathach
2022-03-09minor clean uphathach
2022-03-09refactor usbd to also use common endpoint claim/releasehathach
2022-03-09implement tu_edpt_release()hathach
2022-03-09adding tusb_private.h to implement common edpt claimhathach
2022-03-09add tusb_debug.h remove tusb_error.hhathach
move debug utils to new header
2022-03-09update use of mutex for hosthathach
2022-03-09rename host descriptor functionhathach
2022-03-09add tuh_descriptor_hid_report_get()hathach
2022-03-08Merge pull request #1389 from hathach/fix-1359Ha Thach
fix issue 1359