summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
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
2020-11-23add tud_ready() check in tud_cdc_n_write_flush()hathach
other clean up
2020-11-23Merge branch 'master' into cdc_without_dtrHa Thach
2020-11-23have tusb_init() return true instead of TUSB_ERROR_NONEhathach
2020-11-19merge class driver control_request & control_complete to control_xfer_cb()hathach
migrated msc_device
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-07Merge pull request #553 from hathach/host-async-controlHa Thach
Host async control
2020-11-04Merge remote-tracking branch 'hathach/master' into cdc_without_dtrJan Dümpelmann
2020-11-01house keeping: make tu_print_mem format easier to compare with hex2dumphathach
2020-10-11Merge branch 'master' into host-async-controlhathach
2020-10-11Merge pull request #520 from salkinium/feature/misc_enhancementsHa Thach
STM32F3 IRQ remap option and some minor improvements
2020-10-07fix audio_test buildhathach
2020-10-03Allow overwriting TU_ASSERT etc macrosNiklas Hauser
2020-10-03Use tu_printf instead of printfNiklas Hauser
2020-10-03Use C++11 static_assert when availableNiklas Hauser
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-07rework usbh control transferhathach
use series of complete callback instead of blocking semaphore, which is more noOS friendly. still working with hid host
2020-09-03New function to modify fifo overwritabilityJan Dümpelmann
2020-08-01correct isr context for nrf DCD_EVENT_UNPLUGGEDhathach
also rename debug lookup to prevent conflict
2020-06-30Merge branch 'master' into add-stm-hshathach
2020-05-31able to detect as hshathach