summaryrefslogtreecommitdiff
path: root/src/common/tusb_fifo.c
AgeCommit message (Collapse)Author
2021-05-02some text fomarting, update unit test to test get buffer info for fifohathach
2021-04-30Remove n from tu_fifo_get_write_info() and fix bug in vendor classReinhard Panhuber
2021-04-30Comment cleanupReinhard Panhuber
2021-04-30Remove variable n in tu_fifo_get_read_info()Reinhard Panhuber
2021-04-30Remove all remainings with peek_atReinhard Panhuber
2021-04-30Remove offset feature from fifo.cReinhard Panhuber
2021-04-30Change read infos to pointer typeReinhard Panhuber
2021-04-23Change tu_fifo_get_linear_write/read_info() to return a structReinhard Panhuber
Compilers always complain that variables set by function via pointer might be uninitialized so to avoid that return values are now delivered via struct.
2021-04-23Implement functions to allow for DMA usage in audio driver.Reinhard Panhuber
- Add tud_audio_n_get_ep_out_ff(), tud_audio_n_get_ep_in_ff(), tud_audio_n_get_rx_support_ff(), and tud_audio_n_get_tx_support_ff() - Change get_linear_read/write_info() to return linear and wrapped part at once - Adjusted affected code in audio_device.c and tested with audio_4_channel.
2021-04-07more cleanuphathach
2021-04-07remove tu_fifo_backward_write/read_pointer APIhathach
since it is illegal from fifo perspective
2021-04-07more _ff_pull/push clean uphathach
2021-04-07clean up _ff_push_nhathach
2021-04-07use tu_unaligned_write32() for _ff_push_const_addrhathach
2021-04-07renamehathach
2021-04-07fix cast-align warninghathach
2021-04-06more clean up for _ff_pull_const_addr_in_full_words()hathach
2021-04-06refactor _ff_pull_n() with const addrhathach
2021-04-03Generalize audio driver for 3 audio functions plus a lot more.Reinhard Panhuber
- Audio format and parameters are parsed from descriptors thus user no longer needs to give them explicitely - Tested for 4 channel software type I PCM encoding with 16 bit with 1 channel per FIFO and 2 channels per FIFO (this is I2S specific)
2021-03-25Fix shadowing parameter in fifo.cReinhard Panhuber
2021-03-25Implement unaligned word copy.Reinhard Panhuber
2021-03-25Rework to copy wrapped word bytes by byte in copy_to_cont_dst etc.Reinhard Panhuber
2021-03-23Fix bug in writing to constant src/dst address.Reinhard Panhuber
Copying has to be conduct in full words (at least for STM32). Renamed copy function to tu_fifo_write_n_const_addr_full_words()
2021-03-13fix fifo unlock typo, also clean up a bithathach
2021-03-10Implement audio PCM type I enc./decoding acc. to 2.3.1.5 Audio StreamsReinhard Panhuber
Extending capabilities of support FIFOs Removing copy from to FIFO Adjusting audio examples Remove peek/read into other FIFO
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