Commit Graph

3684 Commits

Author SHA1 Message Date
hathach
0004faca83 minor update hid device 2024-07-17 19:29:21 +07:00
hathach
0ecf15bc61 follow up to #2253
- rename tud_hid_report_fail_cb() to tud_hid_report_failed_cb() and change its signature
- use default implementation for hid callbacks to be compatible with keil compiler
- code format
2024-07-17 14:35:23 +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
1f590c3628 - add tud_cdc_configure_fifo() to replace CFG_TUD_CDC_PERSISTENT_TX_BUFF
- new line, and code format
2024-07-12 16:53:21 +07:00
hathach
ca12a57902 add u for unsigned 2024-07-05 15:19:16 +07:00
Ha Thach
bd562e4180 Revert "audio.h: fix error ISO C restricts enumerator values to range of 'int'" 2024-07-05 15:15:00 +07:00
Davide Gerhard
8f9a57636c audio.h: fix error ISO C restricts enumerator values to range of 'int'
fix error

~/dsp/libs/tinyusb/src/class/audio/audio.h:643:53: error: ISO C restricts enumerator values to range of 'int' before C23 [-Werror=pedantic]
  643 |   AUDIO_CHANNEL_CONFIG_RAW_DATA                   = 0x80000000, // TODO
      |                                                     ^~~~~~~~~~
compilation terminated due to -Wfatal-errors.

Closes: https://github.com/hathach/tinyusb/issues/2690
2024-06-28 19:57:59 +02:00
HiFiPhile
7125ac20ca Merge pull request #2691 from ra1nb0w/strict-overflow
audio_device.c: fix strict-overflow warning with gcc >= 12
2024-06-28 11:12:56 +02:00
Davide Gerhard
8f699023f3 audio_device.c: fix strict-overflow warning with gcc >= 12
Fix the following error

~/libs/tinyusb/src/class/audio/audio_device.c:1493:23: error: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Werror=strict-overflow]
 1493 |         while (p_desc < p_desc_end)
      |                ~~~~~~~^~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
2024-06-28 10:55:43 +02:00
Davide Gerhard
85e1f423bf remove double semicolon since ISO C not allow it
ISO C does not allow extra ';' outside of a function [-Werror=pedantic]
2024-06-27 21:30:16 +02:00
Ha Thach
13dedddd19 Merge pull request #2686 from hathach/add-host-devinfo 2024-06-25 15:29:17 +07:00
Ha Thach
044f4d1801 Merge pull request #2676 from Okarss/fsdev_documentation
[FSDEV] Update the STM32 documentation
2024-06-21 20:45:44 +07:00
Andrew Leech
0d79da37e7 synopsys/dwc2_esp32: Add header for vTaskDelay. 2024-06-20 15:18:41 +10:00
Okarss
5083d1eb33 Update Host mode information for FSDEV devices 2024-06-18 12:12:44 +03:00
hathach
d945261aef LOG3 in isr 2024-06-18 12:53:57 +07:00
Ryzee119
d52d659261 usbh: Set interface recipient should be interface 2024-06-18 14:02:36 +09:30
Ha Thach
007a8bd46d Merge pull request #2672 from tinic/master
Add support for STM32U535xx/STM32U545xx
2024-06-15 10:56:24 +07:00
Okarss
5f060a357d Update the STM32 documentation 2024-06-14 21:23:17 +03:00
Okarss
fb6a6acbff Revert the DSB because of RISC-V 2024-06-14 18:39:48 +03:00
Okarss
00062ddb0c [STM32 FSDEV] Simplify toggle bit logic 2024-06-14 18:16:09 +03:00
hathach
2be72a97b8 minor update 2024-06-14 17:55:36 +07:00
hathach
f32851cf2a fix ci skip example for ch32v1 2024-06-14 16:16:10 +07:00
hathach
9ae0053573 newline 2024-06-14 16:08:26 +07:00
hathach
33f5547ed4 add ch32v103 bsp support, compile but does not run, probably due to compile/linker issue 2024-06-14 16:06:37 +07:00
hathach
969b06d77c minor update 2024-06-14 12:51:50 +07:00
hathach
2ed027f2bd use stock core_riscv.h for ch32 v2 v3 2024-06-14 12:51:28 +07:00
Tinic Uro
bc576e7cee Make it work. 2024-06-12 08:33:10 -07:00
Tinic Uro
28c2433375 Add stm32u545nucleo board. 2024-06-12 08:08:25 -07:00
Tinic Uro
60d7fcb1ee Use correct backend. 2024-05-30 13:26:14 -07:00
Tinic Uro
2e946ac77a Use correct specs. 2024-05-29 13:23:18 -07:00
Tinic Uro
22e6b1130f Cleaner approach. 2024-05-29 13:13:47 -07:00
Tinic Uro
4938128ccc Make it compile for STM32U545. 2024-05-29 12:54:15 -07:00
hathach
8767d1ab7d fix xtensa_api.h include 2024-05-29 15:19:59 +07:00
HiFiPhile
003a5d4f55 Merge branch 'master' into additional_dcd_sof_enable 2024-05-27 20:10:44 +02:00
HiFiPhile
a9745c9818 Fix tud_sof_cb_enable() return type. 2024-05-27 20:35:35 +10:00
HiFiPhile
8f0459c89e Fix frame count in tud_sof_cb(). 2024-05-27 20:35:35 +10:00
Andrew Leech
087fe79e2c renesas: Add support for dcd_sof_enable(). 2024-05-27 20:35:35 +10:00
Andrew Leech
160cd79fdb nrf5x: Add support for dcd_sof_enable(). 2024-05-27 20:35:35 +10:00
Andrew Leech
e229270a1c microchip samd: Add support for dcd_sof_enable(). 2024-05-27 20:35:35 +10:00
Andrew Leech
a2e5ea1882 chipidea/mimxrt: Add support for dcd_sof_enable(). 2024-05-27 20:35:35 +10:00
hathach
3175aaa0eb increase version as pre-releases, still need more clean up before actual relesae 2024-05-24 20:17:53 +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
hathach
927015baae wch usbfs/usbhs need to specify which driver to use. for v307 default to highspeed 2024-05-24 11:38:44 +07:00
hathach
4a5b190a22 re-add sof event 2024-05-21 18:34:25 +07:00
hathach
953e3bd634 - minor update to ep_set_response_and_toggle/xfer_data_packet
- merge USBHS_ISO_ACT_FLAG, USBHS_TRANSFER_FLAG handler since they are similar
- improve uart output
- add note for link speed in bus reset
2024-05-21 17:50:50 +07:00
hathach
4bd72da5cd use CFG_TUD_ENDPOINT0_SIZE, rename ep0_data_in_out_buffer to simply ep0_buffer
reformat indent to 2 spaces
2024-05-21 15:41:59 +07:00
Denis Krasutski
3e604d1d54 fix(ch32, iso): fix iso IN transfers for CH32 2024-05-21 15:24:40 +07:00
dkrasutski
869e5e950c bugfix(ch32-hs-dcd): fix ch32 DATAx managment and long packet transmission 2024-05-21 15:24:36 +07:00
Ha Thach
a068b81674 Merge pull request #2362 from dragonlock2/master
Add CH32V20x USB OTG/FS Driver
2024-05-20 18:47:22 +07:00