hathach
8eca596fa6
style changes
2024-01-12 16:05:35 +07:00
hathach
290f4bea91
- change tuh_event_hook_cb, tud_event_hook_cb to weak default implementation
...
- change code style
2024-01-12 15:47:08 +07: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
19d7d62e80
try to add samd51 to hil pool using doublereset (rpi gpio) and bossac
2023-12-13 18:54:00 +07:00
hathach
426f791e7a
minor doc
2023-11-24 19:09:34 +07:00
Ha Thach
02017a81e9
Merge pull request #2303 from projectgus/feature/isr_event_hook
...
Add optional hooks for DCD and HCD events
2023-11-24 18:39:29 +07:00
hathach
188fbd8ed9
add optional event hook callback tud_event_hook_cb() and tuh_event_hook_cb()
2023-11-24 18:21:24 +07:00
hathach
6e5c7f4390
rename to CFG_TUD_BTH_HISTORICAL_COMPATIBLE, move CFG_TUD_BTH_ISO_ALT_COUNT to tusb_option.h and mandatory for BTH driver
2023-11-24 16:08:48 +07:00
Angus Gratton
68894398af
Add optional hooks for DCD and HCD events
...
These are intended to allow bare metal platforms with one-shot scheduling
capabilities to schedule the TinyUSB task handlers whenever they know there is
work for them to do.
Signed-off-by: Angus Gratton <angus@redyak.com.au >
2023-11-23 14:42:51 +11:00
HiFiPhile
2d802e03e9
Update audio_4_channel_mic example for HS device.
2023-10-24 22:14:24 +02:00
hathach
1b9108ea0d
minor debug clean up
2023-09-06 17:11:35 +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
9257a0f562
- update nrf52 bsp for cmake
...
- add empty tuh_int_handler/tud_int_handler if corresponidng stack not enabled
- add hcd_template.c
2023-08-18 12:48:12 +07:00
hathach
1b33a31536
more minor clean up
...
- also rename usbh_classdriver.h to usbh_pvt.h to consitent with usbd
2023-08-15 22:54:07 +07:00
Rocky04
9602c06f8d
Correcting comments
2023-08-07 21:25:50 +02:00
Rocky04
c959e65edd
Fixing wrong callback placement
2023-08-07 21:16:41 +02:00
Rocky04
9560d0813f
Set unmounted on configuration reset
2023-08-02 15:25:08 +02:00
hathach
ef49b93532
rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack
...
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-24 15:46:21 +07:00
hathach
77495cf119
improve logging, allow easier to turn off usbd, driver logging
...
can be useful when focusing on let's say usbh
2023-07-20 17:12:00 +07:00
Ha Thach
50e61e0e16
Merge pull request #2101 from eustas/patch-1
...
Fix typos
2023-06-21 15:51:03 +07: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
Eugene Kliuchnikov
0833806980
Fix typos
2023-06-08 15:38:30 +02:00
hathach
9b7dee563e
able to response with good crc
2023-06-07 18:57:48 +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
1e998ce3bd
usbd: fix control transfer issue for chipidea hs when previous status and new setup complete in the same isr frame
...
change usbd edpt busy/stalled/claimed value to 0/1 instead of
(true/false) since they are 1-bit field.
2023-05-16 11:09:23 +07:00
hathach
206d63e038
correct EHCI reporting failed xfer (instead of stalled) when device is unplugged
2023-05-16 11:09:21 +07:00
hathach
0921edaf59
use tud_inited() instead of tusb_inited()
2023-03-22 09:23:11 +07:00
hathach
d919f107c7
minor clean up
2023-03-18 11:22:44 +07:00
hathach
bdfcd50b1b
Merge branch 'master' into portability
2023-03-17 23:53:38 +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
hathach
ffdc100cb9
rename ep_num to ep_idx, minor clean up
2023-02-28 17:11:59 +07:00
Ha Thach
65ac519715
Merge pull request #1852 from silvergasp/mem_s
...
fix: Replace device calls to memcpy with tu_memcpy_s
2023-02-27 10:22:53 +07:00
hathach
e34aeb5cf6
minor clean up
2023-02-27 09:11:35 +07:00
hathach
498989ee00
use tu_static instead of static _fuzz_thread
2023-02-22 16:23:40 +07:00
hathach
03ec49450d
rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_thread
2023-02-22 11:47:09 +07:00
Nathaniel Brough
18c3095346
fix: Change all static variables to thread when fuzzing
2023-01-20 15:45:31 -08: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
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
Mengsk
21bdafcfef
Add ISO buffer allocation.
2022-12-30 01:08:04 +01:00
Mengsk
db65759b1e
Use weak for dcd_edpt_iso_alloc/dcd_edpt_iso_activate
2022-12-29 23:29:50 +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
hathach
edc559cb4d
fix ci
2022-12-21 12:29:51 +07:00
Ha Thach
159aa599be
Merge pull request #1799 from hathach/update-osal-mutex
...
Update osal mutex
2022-12-16 17:05:25 +07:00
hathach
88e6da7273
use OSAL_MUTEX_REQUIRED to replace CFG_FIFO_MUTEX/TUSB_OPT_MUTEX
...
add macro to swallow mutex API in order to simplify code with mutex
2022-12-15 18:03:01 +07:00
hathach
a05adfce86
fix midi MS Header wTotalLength computation
2022-12-14 14:38:40 +07:00
Sebastien COUDREAU
071da47944
Correct interrupt polling interval in descriptor
...
Use macro argument instead of 0x16 constant value.
At least Linux kernel was complaining about this value:
"config 1 interface 0 altsetting 0 endpoint 0x82 has an invalid bInterval 22, changing to 8"
(warning obtained using usbtmc device config)
2022-12-08 11:44:15 +01:00
Bastien Nocera
6a2cf67289
Fix typos
2022-12-04 19:43:23 +07:00