Commit Graph

664 Commits

Author SHA1 Message Date
eea7d7b327 Fix CI. 2024-05-09 22:08:41 +02:00
376b43906a Convert to bit-field since it's more reliable. 2024-05-09 21:55:28 +02:00
16cd92fbf1 Don't forget to queue SOF event. 2024-05-09 21:47:22 +02:00
ca479d6e4b Disable SOF on configuration change. 2024-05-09 18:44:27 +02:00
11b5b2af51 Move sof status into usbd_device_t. 2024-05-09 18:37:51 +02:00
c8beaad2b1 Switch to weak default implementation. 2024-05-09 18:07:22 +02:00
6c286e3b02 Merge branch 'master' into patch-5 2024-05-09 18:00:52 +02:00
ba6babf570 Rework ci (#2631)
* add name field to usbd_class_driver_t
* ci: use set matrix py script
* add riscv32 and cmake support for ch32v307, fomu,  gd32vf103
* update build_cmake.py to take --family --board --toolchain
* separate hil test to its own workflow
* move esp32 board into separated hil json
* add make build to ci
* remov build_make.py
* build.py support esp32 board
* setup toolchain support esp-idf
* fix missing click
* merge family in matrix build to reduce jobs
* skip cifuzz since it still has issue with get_deps and click
2024-05-09 20:43:46 +07:00
35e7fddc73 Add missing capability bit for CDC ACM serial break support
The send break capability bit is needed for serial break support with Linux and possibly MacOS hosts. [A recent Linux kernel patch made it check the ACM capability bits before sending a serial break](19e321c3ee).
2024-04-30 16:53:25 +01:00
f3781a45d8 Merge pull request #1662 from Erlkoenig90/check-usbd-queue-overflow
Check for event queue overflow in usbd / dcd_event_handler
2024-04-16 10:58:15 +07:00
189080b684 add TU_ASSERT() to check for adding new usb event 2024-04-16 10:40:24 +07:00
5dabef79ee don't check local endpoint stalled status, just carry the request for host. 2024-04-16 10:27:16 +07:00
9588c3fac9 USBD: When SET_FEATURE(ENDPOINT_HALT), the DTOG must be reset. 2024-04-16 10:19:16 +07:00
be25a3fc20 revert usbd driver name change to be backward compatible 2024-04-08 22:56:22 +07:00
c3c0648456 add class driver deinit 2024-04-08 22:07:56 +07:00
47c12a07f2 Implements tuh_deinit() and tud_deinit() to uninitialize host/device mode. 2024-04-08 19:00:35 +07:00
5738757e2c Merge pull request #2421 from antoniovazquezblanco/debug
Log outbound xfer bytes while in debug
2024-04-04 18:34:26 +07:00
802ad885ab minor update 2024-04-04 17:15:38 +07:00
05f9cab191 UAC2: refactor interrupt endpoint support. 2024-04-01 20:02:35 +02:00
0814ca0cc7 Merge pull request #2515 from Lurcy38/ReAlignMaster 2024-03-25 19:14:58 +07:00
5630030a22 improve uvc debug message 2024-03-20 17:55:31 +07:00
f9c85ae47b IAR Warning: Fixed due to an boolean operation between enum (Pa089)
Warning[Pa089]: enumerated type mixed with another enumerated type	...tusb_uac2_audio.c	199
This issue stops the build if we treat warning as error
2024-03-14 09:13:12 +01:00
834e2c9560 usbd only process last setup packet in the event queue 2024-03-13 11:46:23 +07:00
5653232144 reformat code 2024-03-11 21:59:30 +07:00
4d4e20b71e missing \r\n after TU_LOG_BUF => moved \r\n to tu_print_buf() 2024-02-08 12:00:44 +01:00
0531027b57 usbd: log outbound xfer bytes in debug 2024-02-07 13:06:41 +01:00
8eca596fa6 style changes 2024-01-12 16:05:35 +07:00
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
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
19d7d62e80 try to add samd51 to hil pool using doublereset (rpi gpio) and bossac 2023-12-13 18:54:00 +07:00
426f791e7a minor doc 2023-11-24 19:09:34 +07:00
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
188fbd8ed9 add optional event hook callback tud_event_hook_cb() and tuh_event_hook_cb() 2023-11-24 18:21:24 +07:00
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
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
2d802e03e9 Update audio_4_channel_mic example for HS device. 2023-10-24 22:14:24 +02:00
337d03d368 Incorrect comment 2023-09-14 19:16:45 +00:00
c87fba1dc3 Bug 2023-09-14 19:03:16 +00:00
46977a011d Fixign errors 2023-09-14 18:53:55 +00:00
288f24b294 Missing semicolon 2023-09-14 18:50:13 +00:00
997c29ba05 SOF ISR control 2023-09-14 18:46:56 +00:00
1b9108ea0d minor debug clean up 2023-09-06 17:11:35 +07:00
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
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
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
427ecbbc53 Bad line break at start 2023-08-08 23:33:47 +02:00
a98b219922 Remove port from SOF callback 2023-08-08 18:14:00 +00:00
0161955c22 Adding support for a SOF callback 2023-08-08 17:48:45 +00:00
9602c06f8d Correcting comments 2023-08-07 21:25:50 +02:00
c959e65edd Fixing wrong callback placement 2023-08-07 21:16:41 +02:00