a397353916
fix ci build with rp2040
2021-03-10 17:58:39 +07:00
e864bda627
fix build with freertos
2021-03-10 17:21:59 +07:00
de1f36f2b0
Adapt mutexes in fifo.c
2021-03-04 19:52:48 +01:00
2e28861cf8
Remove TODOs done.
2021-03-04 18:20:22 +01:00
7e56f46957
Extend FIFO mutex to use separate write and read mutexes.
...
Adjust all USB drivers using FIFO and mutexes.
2021-03-04 13:52:14 +01:00
848e403e37
Fix unused parameter in _ff_push_copy_fct() and _ff_pull_copy_fct
2021-03-03 08:18:57 +01:00
bd2bab7aff
Remove set_copy_modes(), implement:
...
tu_fifo_read_n_const_addr(), tu_fifo_write_n_const_addr()
2021-03-02 21:41:51 +01:00
cc948288bd
Revert tusb_fifo.h include form to original.
2021-02-25 11:18:37 +01:00
387bf1478e
Fix missing , in tusb_fifo.h
2021-02-23 19:52:31 +01:00
e223d46033
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
...
Conflicts:
src/common/tusb_fifo.h
src/osal/osal_none.h
2021-02-23 19:47:57 +01:00
2a04ee68b8
add TU_FIFO_INIT() to help with tu_fifo declaration
...
tu_fifo_clear() also reset max_pointer_idx and non_used_index_space
2021-02-19 11:57:56 +07:00
044d29c927
Merge pull request #654 from xmos-jmccarthy/master
...
Add alternate bitfield padding option
2021-02-19 11:03:53 +07:00
8904874f76
Exclude #include "osal/osal.h" for OPT_OS_NONE
2021-02-18 20:52:57 +01:00
31bf73517e
Add #include "osal/osal.h" in tu_fifo.h
2021-02-18 20:16:57 +01:00
21f1cd4ec7
Implement requested PR changes
...
Removes CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT, and makes the manual padding
behavior standard. Replaced unused variable name with TU_RESERVED.
2021-02-18 13:26:03 -05:00
681cfd0bf2
Correct for wrong pointer type in audio_device.c
2021-02-18 11:12:16 +01:00
ae20d11124
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
...
Conflicts:
src/common/tusb_fifo.h
2021-02-17 22:08:21 +01:00
c87357c025
Improve tu_fifo capabilites
...
Added tu_fifo_get_linear_write_info(), tu_fifo_backward_write_pointer(),
and tu_fifo_backward_read_pointer()
2021-02-17 20:44:26 +01:00
b7ec66e33a
This fixes the overflow mathmatic in the fifo
2021-02-16 23:08:08 -05:00
f8fbc0930b
Add alternate bitfield padding option
...
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-16 10:43:52 -05:00
cdf600048f
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
2021-02-12 18:05:20 +01:00
ec458292fe
fix host build
2021-01-25 13:25:47 +07:00
f1551d7a5f
Add __restrict keyword and memore alignment to src/dst pointer of
...
_tu_fifo_read_from_const_src_ptr()
_tu_fifo_write_to_const_dst_ptr()
2021-01-20 20:14:23 +01:00
99e6bc3720
Explicitly add cast to uint32_t before shifting uint8 to left
2021-01-18 17:54:08 +01:00
51c80630f5
Clean up
2021-01-18 17:13:06 +01:00
8450bc3225
Add FIFO copy modes: tu_fifo_copy_mode_t
...
Allows to copy from/to constant pointers required for STM32 hardware
FIFO copies.
2021-01-18 17:12:39 +01:00
bdbcb8df39
Add tu_fifo_read_n_into_other_fifo() to copy into from FIFO into another
...
Fix overflow in tu_fifo_write_n()
2021-01-17 11:55:33 +01:00
08f8f488a0
Merge pull request #571 from HiFiPhile/iar_fifo
...
Fix IAR error on memcpy and warnings.
2020-12-24 12:03:57 +07:00
baa5417f3e
Fix IAR error on memcpy and warnings.
...
Signed-off-by: MasterPhi <admin@hifiphile.com >
2020-12-23 16:54:55 +01:00
b3c0d417ef
Fix error if "Required Prototype" is selected.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2020-12-20 23:10:34 +01:00
f5e13d5898
msc only invoke scsi complete callback after status transaction is complete
2020-11-24 23:42:30 +07:00
4b4f880785
add tud_ready() check in tud_cdc_n_write_flush()
...
other clean up
2020-11-23 23:40:13 +07:00
308028e17c
Merge branch 'master' into cdc_without_dtr
2020-11-23 23:25:55 +07:00
14138f105e
have tusb_init() return true instead of TUSB_ERROR_NONE
2020-11-23 13:12:51 +07:00
3c31d08051
merge class driver control_request & control_complete to control_xfer_cb()
...
migrated msc_device
2020-11-19 21:01:33 +07:00
54e29e9ff4
Implementation of the discussed changes
...
- 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-18 09:42:50 +01:00
a708ab6254
Merge pull request #553 from hathach/host-async-control
...
Host async control
2020-11-07 10:52:14 +07:00
af9f0f1cd6
Merge remote-tracking branch 'hathach/master' into cdc_without_dtr
2020-11-04 17:11:01 +01:00
67ac40b98d
house keeping: make tu_print_mem format easier to compare with hex2dump
2020-11-01 13:37:56 +07:00
b5d4c8185d
Merge branch 'master' into host-async-control
2020-10-11 16:22:12 +07:00
80c509a0f3
Merge pull request #520 from salkinium/feature/misc_enhancements
...
STM32F3 IRQ remap option and some minor improvements
2020-10-11 14:55:06 +07:00
3f54c27afa
fix audio_test build
2020-10-07 13:36:03 +07:00
e41d9202b8
Allow overwriting TU_ASSERT etc macros
2020-10-03 20:17:53 +02:00
51fb659533
Use tu_printf instead of printf
2020-10-03 20:17:53 +02:00
78477077b4
Use C++11 static_assert when available
2020-10-03 20:17:36 +02:00
8dcb104933
Change modulo substitute to while ( idx >= depth) idx -= depth;
2020-09-26 11:00:31 +02:00
9ddcfc09d7
Fix wrong comments, rename pos to offset, rename overflow().
2020-09-25 15:58:28 +02:00
52c9a467b4
Fix bug in modulo substitute.
2020-09-23 21:36:30 +02:00
9bdeafb295
Change maximum depth to 2^15 which allows for a fast modulo substitute.
...
Thus, however, overflows are detectable only for one time FIFO depth.
2020-09-23 20:48:03 +02:00
21299f90fa
Final cleanup.
2020-09-19 11:46:43 +02:00