summaryrefslogtreecommitdiff
path: root/src/common/tusb_fifo.c
AgeCommit message (Collapse)Author
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-16This fixes the overflow mathmatic in the fifoNicholas R Dinsmore
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