hathach
f3b7d7515e
fix fuzzing build
2024-10-11 16:00:51 +07:00
hathach
d997f0071e
change dcd_init() to take rhport struct
2024-10-11 15:31:49 +07:00
hathach
ea4f9ceb58
remove weak from dcd_edpt_close() for port without TUP_DCD_EDPT_ISO_ALLOC
2024-08-19 20:08:55 +07:00
hathach
635bdc1fce
fix ci build
2024-08-19 17:36:11 +07:00
hathach
8fdd8d9a7b
implement dcd_edpt_iso_alloc/dcd_edpt_iso_activate for musb. video_capture example with iso kind of work but not smoothly. audio example does not seems to work as expected
2024-08-19 12:04:24 +07:00
hathach
f4aaad6869
add edpt0_open(), slightly update dtog
2024-07-30 21:35:24 +07:00
hathach
a5bc0430f7
fix race condition where reset event cleaar setup count
2024-07-25 16:49:01 +07:00
hathach
4ce1cce40a
simplify dwc2 test mode
...
- all dwc2 ip seems to support test mode in both fs/hs -> remove TUP_USBIP_DWC2_TEST_MODE
- remove dcd_check_test_mode_support(), all should be supported
- move enum tusb_feature_test_mode_t to tusb_types.h
2024-07-12 20:17:14 +07:00
hathach
daffb24111
minor clean up
2024-05-24 14:13:58 +07:00
hathach
4ce439a75a
add ch32 support for fsdev driver. v20x can select fsdev or usbfs with make/cmake PORT=0/1. default to fsdev
2024-05-24 13:58:44 +07:00
HiFiPhile
e250b82377
Adjust logic.
2024-05-13 22:26:19 +02:00
HiFiPhile
0fce7d1f54
Merge branch 'master' into test-mode-support
2024-05-13 21:08:11 +02:00
hathach
c3c0648456
add class driver deinit
2024-04-08 22:07:56 +07:00
Felix "xq" Queißner
47c12a07f2
Implements tuh_deinit() and tud_deinit() to uninitialize host/device mode.
2024-04-08 19:00:35 +07:00
Rocky04
78a1d4c482
Merge branch 'master' into test-mode-support
2024-01-15 16:27:22 +01:00
Rocky04
3c4184dc15
Removed whitespace
2024-01-15 16:16:09 +01:00
Rocky04
c3e96e667f
Change to control complete cb
2024-01-15 15:10:46 +00:00
Rocky04
1755bba509
Add DWC2 Test Mode SUpport
2024-01-15 12:47:13 +00:00
Ha Thach
858077483d
Merge pull request #2239 from XelaRellum/bugfix_stm32_fsdev_keil
...
Fixes #1018 the weak dcd_edpt0_status_complete for Keil Compiler
2024-01-12 15:26:02 +07:00
hathach
426f791e7a
minor doc
2023-11-24 19:09:34 +07:00
Alexander Mueller
9665843635
Fix the weak dcd_edpt0_status_complete for Keil Compiler
...
The Keil compiler seems to have different semantics and the defined function was never called.
The same is probably true for the other weak functions. I can change those too.
2023-08-29 18:16:50 +02:00
hathach
65d6acdbfa
fix build warnings
2023-06-16 12:02:42 +07:00
hathach
912802456b
move protocol message to stack, disable battery in PWR's CR3
...
there is still issue with CC1/CC2 pull down resistor and vstate is not
correct.
2023-06-09 18:15:28 +07:00
Ha Thach
1ef820ecfe
Enhance chipidea ( #2075 )
...
* update chipidea dcd, remove manual ep_count and use DCCPARAMS to get number of endpoint instead
* add dcd dcache for chipidea
* add cmake for lpc18
* add makefile build for mcx
* use fork of mcu sdk
* fix ci build with nrf
* flash rp2040 with openocd
2023-05-23 21:45:00 +07:00
hathach
3623ba1884
fix trailing space and new line
...
temporarily disable codespell
2023-03-17 16:12:49 +07:00
Ha Thach
3c38c7dc25
Merge pull request #1828 from HiFiPhile/stm32_fsdev
...
stm32_fsdev & ISO EP buffer allocation improvements
2023-02-28 23:45:02 +07:00
Nathaniel Brough
2e47210c1a
fix: Replace device calls to memcpy with tu_memcpy_s
...
Introduces a new function tu_memcpy_s, which is effectively
a backport of memcpy_s. The change also refactors calls
to memcpy over to the more secure tu_memcpy_s.
2023-01-13 15:20:32 -08: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
hathach
0042eccb3b
fix redundant-decls warnings by usbd/usbh
2022-06-24 22:52:11 +07:00
Ha Thach
fdeac8508b
Merge pull request #1381 from hathach/add-sof-isr
...
Add SOF IRQ Handler
2022-05-31 22:25:14 +07:00
hathach
a32cb1bb93
clean up pio driver
2022-04-18 17:49:21 +07:00
hathach
707a633de3
added dcd_sof_enable(), tud_sof_isr_set()
...
make number of interface configurable (default to 8)
CFG_TUD_INTERFACE_MAX
2022-03-07 23:03:51 +07:00
hathach
11c89d43ab
more internal rename
2022-02-26 17:06:50 +07:00
hathach
99ad3ae2ca
rename and move dcd_attr.h to tusb_mcu_attr.h
2022-02-25 18:35:21 +07:00
Yunhao Tian
ac20605e3f
Ignore certain compiler options on ARMCC
...
ARMCC also sets __GNU__ macro, but doesn't support
GCC diagnostic pragmas.
2021-11-30 17:19:11 +08:00
graham sanderson
06d9555389
More warning cleanup
...
- physically suppress warnings in TinyUSB headers using pragmas so they don't break -Werror compilation of external files that include them
- fix compiler warnings in rp2040 port
- add cmake method to rp2040 port to allow an external project to suppress warnings in TinyUSB itself
2021-10-14 15:23:26 -05:00
hathach
fc889ece74
rp2040 correct ep set/clear stall
...
- stall will remove pending (not complete) transfer. Correct reset data
toggle when clear stall.
- remove buf ctrl debug code
2021-09-01 16:52:27 +07:00
hathach
71e77e47fa
add dcd_edpt_close_all() for clear existing configured state
...
correctly responded to TD 9.13 Set Configuration Test
2021-08-26 17:07:03 +07:00
hathach
88d4cb402d
simplify hw_endpoint_init()
2021-08-12 00:11:04 +07:00
hathach
37cac414f8
fix ci
2021-07-22 00:12:01 +07:00
hathach
a226dbaa4d
add dcd_attr for DCD_ATTR_ENDPOINT_MAX
...
could be useful with more dcd specific attribute
2021-07-22 00:12:01 +07:00
hathach
c7f51cde40
implement usbh_edpt_busy (WIP), remove hcd_edpt_busy
2021-06-10 17:19:21 +07:00
hathach
9736e54734
include clean up
2021-05-27 17:40:39 +07:00
hathach
4f03332118
clean up
2021-05-23 20:14:01 +07:00
hathach
a397353916
fix ci build with rp2040
2021-03-10 17:58:39 +07:00
Reinhard Panhuber
7b8a08d2e1
Rename dcd_edpt_iso_xfer() to dcd_edpt_xfer_fifo()
2021-03-02 20:00:39 +01:00
Reinhard Panhuber
84406f1654
Rework audio driver
2021-01-31 19:08:23 +01:00
Reinhard Panhuber
56edc2b261
Change names from edpt_ISO_xfer to edpt_iso_xfer
2021-01-19 10:50:19 +01:00
Reinhard Panhuber
84c383061f
Add tusb_fifo.h header file to dcd.h
2021-01-18 17:08:59 +01:00