summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
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
2021-02-16Add alternate bitfield padding optionJeremiah McCarthy
Adds configuration option CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT, which substitutes bitfield variable " : 0" padding syntax with an unused variable of size equal to the remaining number of bits. This change resolves aligned access issues for some platforms. Default behavior is original if the option is not explicitly enabled.
2021-02-12Merge remote-tracking branch 'upstream/master' into edpt_ISO_xferReinhard Panhuber
2021-01-25fix host buildhathach
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-18Clean upReinhard 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-24Merge pull request #571 from HiFiPhile/iar_fifoHa Thach
Fix IAR error on memcpy and warnings.
2020-12-23Fix IAR error on memcpy and warnings.HiFIPhile
Signed-off-by: MasterPhi <[email protected]>
2020-12-20Fix error if "Required Prototype" is selected.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2020-11-24msc only invoke scsi complete callback after status transaction is completehathach