summaryrefslogtreecommitdiff
path: root/src/common/tusb_fifo.c
AgeCommit message (Collapse)Author
2021-03-04Adapt mutexes in fifo.cReinhard Panhuber
2021-03-04Remove TODOs done.Reinhard Panhuber
2021-03-04Extend FIFO mutex to use separate write and read mutexes.Reinhard Panhuber
Adjust all USB drivers using FIFO and mutexes.
2021-03-03Fix unused parameter in _ff_push_copy_fct() and _ff_pull_copy_fctReinhard Panhuber
2021-03-02Remove set_copy_modes(), implement:Reinhard Panhuber
tu_fifo_read_n_const_addr(), tu_fifo_write_n_const_addr()
2021-02-23Merge remote-tracking branch 'upstream/master' into edpt_ISO_xferReinhard Panhuber
Conflicts: src/common/tusb_fifo.h src/osal/osal_none.h
2021-02-19add TU_FIFO_INIT() to help with tu_fifo declarationhathach
tu_fifo_clear() also reset max_pointer_idx and non_used_index_space
2021-02-17Merge remote-tracking branch 'upstream/master' into edpt_ISO_xferReinhard Panhuber
Conflicts: src/common/tusb_fifo.h
2021-02-17Improve tu_fifo capabilitesReinhard Panhuber
Added tu_fifo_get_linear_write_info(), tu_fifo_backward_write_pointer(), and tu_fifo_backward_read_pointer()
2021-02-16This fixes the overflow mathmatic in the fifoNicholas R Dinsmore
2021-01-20Add __restrict keyword and memore alignment to src/dst pointer ofReinhard Panhuber
_tu_fifo_read_from_const_src_ptr() _tu_fifo_write_to_const_dst_ptr()
2021-01-18Explicitly add cast to uint32_t before shifting uint8 to leftReinhard Panhuber
2021-01-18Add FIFO copy modes: tu_fifo_copy_mode_tReinhard Panhuber
Allows to copy from/to constant pointers required for STM32 hardware FIFO copies.
2021-01-17Add tu_fifo_read_n_into_other_fifo() to copy into from FIFO into anotherReinhard Panhuber
Fix overflow in tu_fifo_write_n()
2020-12-23Fix IAR error on memcpy and warnings.HiFIPhile
Signed-off-by: MasterPhi <[email protected]>
2020-11-23add tud_ready() check in tud_cdc_n_write_flush()hathach
other clean up
2020-11-18Implementation of the discussed changesJan Dümpelmann
- remove usbd_edpt_xfer_abort - rename tu_fifo_change_mode to tu_fifo_set_mode - remove CFG_TUD_CDC_CLEAR_AT_CONNECTION definition - remove auto fifo clear at connection event - add tud_cdc_n_write_clear function
2020-11-04Merge remote-tracking branch 'hathach/master' into cdc_without_dtrJan Dümpelmann
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-19Final cleanup.Reinhard Panhuber
2020-09-15Tested, working.Reinhard Panhuber
2020-09-14Implementation done, yet to be tested.Reinhard Panhuber
2020-09-03New function to modify fifo overwritabilityJan Dümpelmann
2020-05-14refactor copy to and from fifohathach
2020-05-13Optimize FIFO for byte transfer.Mengsk
Signed-off-by: Mengsk <[email protected]>
2020-01-15Normalize line endingsNathan Conrad
2019-05-29added usbd_edpt_xfer/usbd_edpt_busy to replace dcd_edpt_transfer/dcd_edpt_busy()hathach
- improve fifo write/read_n with only one lock - use usbd_edpt_xfer/usbd_edpt_busy for hid/cdc/msc class driver - replace cdc read's pending_read_from_host by usbd_edpt_busy()
2019-05-14update license year to 2019hathach
2019-03-20migrate license from BSD 3 clause to MIThathach
2018-12-13osal clean uphathach
remove OSAL_TASK_DEF, osal_task_create. Applicaton should create a task and call tinyusb_task(). This make API consistent with NO OS.
2018-11-13added tud_cdc_write_str, tu_fifo only use mutex for RTOS confighathach
2018-11-02add mutex support (optional) for tu_fifohathach
2018-09-26add sys/queue.h to commonhathach
2018-08-23rename common func to avoid conflicthathach
2018-07-14add device cdc wanted char callback, cdc peekhathach
2018-07-04rename fifo * to tu_fifo to avoid conflict with other modulehathach
2018-06-23clean up device cdchathach
separate cdc tx & rx bufsize
2018-06-18rename subfolder source to srchathach