summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2021-05-02Merge pull request #804 from hathach/audio_make_dma_readyHa Thach
Implement functions to allow for DMA usage in audio driver.
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-26add TUP_MCU_STRICT_ALIGN macro that manually pick bytes for lpc55 port1 that ↵hathach
is m4 but cannot unaligned acces on usb ram
2021-04-26ip3511 correct buffer offset, nbytes layout for highspeed port1hathach
able to get passed enumeration and up to READ10
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-06Merge branch 'master' of github.com:hathach/tinyusb into edpt_ISO_xferhathach
2021-04-06add tu_unaligned_read32/write32 (#772)Ha Thach
* add tu_unaligned_read32/write32 * added tu_unaligned_read16/write16 * add TU_ATTR_ALWAYS_INLINE, add to most of simple inline function
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-10Merge remote-tracking branch 'upstream/edpt_ISO_xfer' into edpt_ISO_xferReinhard Panhuber
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-10fix ci build with rp2040hathach
2021-03-10fix build with freertoshathach
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-25Revert tusb_fifo.h include form to original.Reinhard Panhuber
2021-02-23Fix missing , in tusb_fifo.hReinhard Panhuber
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-19Merge pull request #654 from xmos-jmccarthy/masterHa Thach
Add alternate bitfield padding option
2021-02-18Exclude #include "osal/osal.h" for OPT_OS_NONEReinhard Panhuber
2021-02-18Add #include "osal/osal.h" in tu_fifo.hReinhard Panhuber
2021-02-18Implement requested PR changesJeremiah McCarthy
Removes CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT, and makes the manual padding behavior standard. Replaced unused variable name with TU_RESERVED.
2021-02-18Correct for wrong pointer type in audio_device.cReinhard Panhuber
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