Commit Graph

6507 Commits

Author SHA1 Message Date
Nathaniel Brough abb95fc4b3 feat(ci): Adds oss-fuzz integration on PRs 2023-01-09 13:07:03 -08:00
Ha Thach 8775d55adc
Merge pull request #1843 from HiFiPhile/ip3511
ip3511 : Fix IAR build.
2023-01-09 10:02:59 +07:00
MasterPhi 57de6016f9 ip3511 : Fix IAR build. 2023-01-08 11:23:18 +01:00
hathach a7e1de1e83
temporarily suppress redundant-decls due to USART_Printf_Init()
fix codespell
2023-01-08 00:02:25 +07:00
Ha Thach 949950e592
Merge branch 'master' into ch32v307 2023-01-07 23:46:46 +07:00
Ha Thach 83cc71feaf
Merge pull request #1820 from Staacks/master
Fix UVC probe and commit on MacOS
2023-01-07 23:30:30 +07:00
Ha Thach 79e5d7aa69
Merge pull request #1789 from hathach/fix-fifo-memory-overflow
Fix fifo memory overflow
2023-01-07 20:42:19 +07:00
hathach c84de8f06b
minor clean up 2023-01-07 19:40:06 +07:00
hathach 9e551c9f5c
remove _ff_overflowed() due to lack of use 2023-01-07 19:00:04 +07:00
hathach c29b7643a5
simplify _ff_correct_read_index() 2023-01-07 18:53:00 +07:00
hathach 248025bb6c
reverse idx2ptr() arguments to be consistent 2023-01-07 17:29:43 +07:00
hathach 24bd1c9562
update advance_pointer/backward_pointer to use depth instead of fifo, also rename to advance/backward_index 2023-01-07 17:27:26 +07:00
hathach 507d5b10b0
simplify _tu_fifo_count() and _tu_fifo_remaining(), also rename to _ff_count() and _ff_remaining() 2023-01-07 17:14:17 +07:00
hathach a804a1ac09
simplify and remove _tu_fifo_empty, _tu_fifo_full. Also correct full condition check 2023-01-07 16:48:07 +07:00
hathach 2d7849282a
use TU_FIFO_INIT to replace TU_FIFO_DEF 2023-01-07 16:33:11 +07:00
hathach e885ced0fe
using clang with ceedling unit-test with -fsanitize=address 2023-01-07 16:24:05 +07:00
hathach 82457519fa minor clean up 2023-01-07 16:12:35 +07:00
hathach 2a1b81e3c5 minimize tu_fifo size to 16
- remove non_used_index_space
- packed overwritable with item_size
2023-01-06 11:51:17 +07:00
hathach 9c73c1a532 minor clean up 2023-01-06 10:56:19 +07:00
hathach b42d298b81 Merge branch 'master' into fix-fifo-memory-overflow 2023-01-06 10:52:25 +07:00
Ha Thach 6e23c596cc
Merge pull request #1837 from pete-pjb/master
Fix typo in audio.h. Specifiy _ctrl_xfer struct in CFG_TUSB_MEM_SECTION in usbh.c
2023-01-06 10:24:55 +07:00
Ha Thach cde16b802b
Merge pull request #1836 from HiFiPhile/Pe381
Fix IAR warning: Warning[Pe381]: extra ";" ignored
2023-01-06 09:10:11 +07:00
Mengsk 8db462bf6e Add fix to dcd_edpt_iso_activate() 2023-01-05 16:54:42 +01:00
Simon Kueppers d6b612257e Fixed bug where with some devices, the TU_ASSERT inserted with this commit gets triggered for ISOCHRONOUS endpoints. It is necessary for those endpoints to set the NUM_BLOCK and BLSIZE for the receiving buffer in both, USB_COUNTn_TX and USB_COUNTn_RX. Despite the datasheet showing those fields only for the USB_COUNTn_RX register 2023-01-05 16:23:53 +01:00
Mengsk 8c591e2c45 More warning fixes 2023-01-04 12:40:01 +01:00
Ha Thach 18043131d0
Merge pull request #1823 from silvergasp/fix_cluster_fuzz_flags
fix(fuzz): Make sanitizer flags optional
2023-01-04 13:44:33 +07:00
pete-pjb f5cffeedec Fix typo in audio.h. Specifiy _ctrl_xfer struct in CFG_TUSB_MEM_SECTION
Add NULL check to loop in list_remove_qhd_by_addr() function in ehci.c
2023-01-03 10:33:36 +00:00
Mengsk 82f105e32b Fix IAR warning: Warning[Pe381]: extra ";" ignored 2023-01-02 21:18:10 +01:00
Mengsk 69475cd1bf Remove tu_stm32_sof_cb 2023-01-02 12:06:26 +01:00
Mengsk 7228239eb9 Clean up. 2023-01-02 09:43:48 +01:00
Mengsk 51bb27a131 Optimize descriptor looping. 2022-12-31 13:37:22 +01:00
Mengsk 35fa6b660a Fix CI. 2022-12-30 16:10:54 +01:00
Mengsk fc32280f42 Fix buffer allocation overflow. 2022-12-30 15:10:00 +01:00
Mengsk 7ff2f43bfd Add multi-rate audio test example for new ISO buffer allocation. 2022-12-30 15:09:50 +01:00
Mengsk 21bdafcfef Add ISO buffer allocation. 2022-12-30 01:08:04 +01:00
Mengsk 07ad64adfe Do not set USB_EP_RX_NAK for ISO EP. 2022-12-29 23:30:24 +01:00
Mengsk db65759b1e Use weak for dcd_edpt_iso_alloc/dcd_edpt_iso_activate 2022-12-29 23:29:50 +01:00
Mengsk 0bd41d5354 Fix CI. 2022-12-29 21:37:44 +01:00
Mengsk e4f07206f8 UAC : Enable fifo based transfer on stm32_fsdev 2022-12-29 19:34:12 +01:00
Mengsk fe8c170c98 Add dcd_edpt_iso_alloc() / dcd_edpt_iso_activate() for ISO EP buffer management. 2022-12-29 19:19:27 +01:00
Mengsk 8a1184e7b3 Minor audio_test example fix.
Fix CFG_TUD_AUDIO_EP_SZ_IN size.
2022-12-29 14:34:37 +01:00
Mengsk cece59df22 Generally enable ISO xfer. 2022-12-29 12:33:44 +01:00
Mengsk ef2f17a514 Add hardware endpoint allocator. 2022-12-29 12:33:43 +01:00
Mengsk b156a8b78c dcd_stm32_fsdev : Implement FIFO transfer correctly. 2022-12-29 12:33:43 +01:00
Mengsk 17990025bb dcd_stm32_fsdev : Fix index out of bound in dcd_write_packet_memory()
If src is odd then src[wNBytes] is accessed.
2022-12-29 12:33:43 +01:00
Simon Kueppers 1d37f5ef9b Added improvements with regards to SOF timing jitter 2022-12-29 12:33:16 +01:00
Simon Kueppers 76413a95d4 Added TU_ATTR_ALWAYS_INLINE to all static inline functions 2022-12-29 12:29:47 +01:00
Simon Kueppers 9ec21248d7 Fixed various small problems and inaccuracies regarding ISOCHRONOUS endpoint 2022-12-29 12:29:47 +01:00
Mengsk b4b619abd6 SHA-1: 5cb3ed518301e2237ee4e468e97e51ece0ba3838
* Correct handling of SOF interrupt
2022-12-29 12:29:28 +01:00
Mengsk 8327090171 Merge branch 'master' of https://github.com/hathach/tinyusb into stm32_fsdev 2022-12-29 12:14:52 +01:00