Commit Graph

9020 Commits

Author SHA1 Message Date
hathach
61aab7a86a pio-usb now only need sysclk to be multiple of 12Mhz 2025-02-20 22:18:33 +07:00
hathach
cafc788508 change pio-usb to wip fork for testing 2025-02-20 16:16:07 +07:00
hathach
6572c1da0d add fruitjam bsp 2025-02-20 15:47:29 +07:00
hathach
70ddb7a867 more hub improve, handle more failed transfer with polling interrupt status endpoint 2025-02-19 15:50:42 +07:00
hathach
27a4895b79 complete separate hub epbuf from itf
add hub_get_status(), hub_clear_feature()
2025-02-19 12:58:03 +07:00
hathach
48a43a675c move status_change to epbuf
improve hub_xfer_cb()
rename internal complete function
2025-02-19 11:27:33 +07:00
hathach
792a446405 usbh always retry control transfer (max 3) in case of XFER_RESULT_FAILED.
added tuh_connected()
2025-02-17 22:40:19 +07:00
hathach
18d566b94c improve hub: retry if hub interrupt endpoint failed
bump up pio-usb to latest
2025-02-17 17:06:51 +07:00
Devin Auclair
aa860041b8 Add full/high speed compile flag for Microchip SAME70 examples
Default is still high speed, but setting
SPEED=high|full work as expected.

`make BOARD=same70_xplained SPEED=full`

Tested with examples/device/cdc_msc

```preformatted
lsusb -v

...

  TinyUSB Device:

    Product ID: 0x4003
    Vendor ID: 0xcafe
    Version: 1.00
    Serial Number: 0123456789ABCDEF
    Speed: Up to 12 Mb/s   <------ full speed here
    Manufacturer: TinyUSB
    Location ID: 0x03142130 / 12
    Current Available (mA): 500
    Current Required (mA): 100
    Extra Operating Current (mA): 0
    Media:
      Mass Storage:
        Capacity: 8 KB (8,192 bytes)
        Removable Media: Yes
        BSD Name: disk5
        Logical Unit: 0
        Partition Map Type: Unknown
        S.M.A.R.T. status: Verified
        USB Interface: 2
```
2025-02-14 11:06:54 -05:00
hathach
997771fdba - rename tuh_midi_stream_flush() to tuh_midi_write_flush()
- add tuh_midi_packet_read_n() and tuh_midi_packet_write_n()
- add CFG_TUH_MIDI_STREAM_API to opt out stream API
2025-02-14 16:21:48 +07:00
Ha Thach
9d2fd6c4ac Merge pull request #2984 from HiFiPhile/preset
Add CMake presets.
2025-02-14 11:29:33 +07:00
hathach
31a2696de7 - change signature of tuh_midi_mount/umount_cb()
- rename midi_stream_t to midi_driver_stream_t and move to midi.h (common for device and host)
2025-02-14 11:25:50 +07:00
hathach
ed88fc983f - remove tuh_midi_read_poll(), auto schedule EP in when set_config() and xfer_cb as well as ep read()
- de-dup tuh_midi_get_num_rx/tx_cables
- add tuh_midi_read_available()
2025-02-14 10:41:05 +07:00
hathach
bad6cbe489 update midi host to use endpoint stream API 2025-02-13 15:54:31 +07:00
hathach
e0b192b633 - use CFG_TUH_MIDI as number of midi host instance
- comment out tuh_descriptor_device_cb/tuh_desc_configuration_cb since it is unrelated to this PR
2025-02-12 22:16:08 +07:00
hathach
86d371fb79 more ci fix 2025-02-12 13:58:01 +07:00
hathach
7c405236cf fix host midi build 2025-02-12 11:50:57 +07:00
hathach
294fb268d7 pre-commit fix 2025-02-12 11:39:26 +07:00
hathach
85247e50dd clean up 2025-02-12 11:34:32 +07:00
hathach
87adc63226 Merge branch 'master' into fork/atoktoto/midihost
# Conflicts:
#	hw/bsp/rp2040/family.cmake
#	src/class/midi/midi.h
#	src/class/midi/midi_device.c
#	src/device/usbd_control.c
#	src/host/hcd.h
#	src/host/usbh.c
#	src/host/usbh.h
2025-02-12 11:28:16 +07:00
HiFiPhile
14f1feac84 Fix path.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-02-11 20:56:41 +01:00
Ha Thach
5afcfb7522 Merge pull request #2989 from hathach/rtos-house-keeping
Rtos house keeping
2025-02-11 22:54:57 +07:00
hathach
3560ed3d98 remove board_mcu.h 2025-02-11 21:55:28 +07:00
hathach
f1ce4918c2 update make to use FreeRTOSConfig in family instead of examples 2025-02-11 21:44:35 +07:00
hathach
5a39bcf79c remove freeeRTOSConfig in examples 2025-02-11 21:19:09 +07:00
Ha Thach
bb48e6acc8 Merge pull request #2988 from hathach/update-iar-cloud-lms
update IAR LMS CLOUD
2025-02-11 21:18:16 +07:00
hathach
f23bef5fd8 update IAR LMS CLOUD 2025-02-11 20:30:07 +07:00
Ha Thach
457c2b55da Merge pull request #2914 from ReimuNotMoe/master
Various fixes for the Microchip Chipidea FS driver
2025-02-11 16:50:44 +07:00
Ha Thach
24b2abbb05 Merge pull request #2982 from hathach/fix-stringop-overread-warning
fix stringop-overread warning for msc device with memmove
2025-02-10 13:47:52 +07:00
HiFiPhile
1208f88b6e Sort list (bettter for Clion)
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-02-09 18:40:30 +01:00
HiFiPhile
09bce3532c Add CMake presets.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-02-09 00:25:38 +01:00
Ha Thach
35e9f03324 Merge pull request #2911 from jay94ks/styluspen
Adding Stylus-Pen Device Support.
2025-02-07 16:56:22 +07:00
hathach
a232644cbd add full hid usage for Digitizer Page (0x0D), move thing around a bit. 2025-02-07 16:38:14 +07:00
hathach
cd0ca4832d Merge branch 'refs/heads/master' into fork/jay94ks/styluspen 2025-02-07 16:37:51 +07:00
hathach
3ffe8dbfee fix stringop-overread warning for msc device with memmove 2025-02-07 12:48:17 +07:00
Ha Thach
2a3025eaa5 Merge pull request #2976 from JannisKonradBecker/master
ch32v3 fs: signal bus speed
2025-02-06 20:40:51 +07:00
hathach
7df510ecc9 Merge branch 'master' into fork/JannisKonradBecker/master 2025-02-06 17:56:10 +07:00
Ha Thach
9c093a30f4 Merge pull request #2981 from hathach/skip-iar-forked-pr
skip iar build for forked PR
2025-02-06 17:49:18 +07:00
hathach
7282572a56 skip iar build for forked PR 2025-02-06 17:19:18 +07:00
Jannis Konrad
169d2d7a1f use speed enum 2025-02-06 08:50:25 +01:00
Ha Thach
99b6e97080 Merge pull request #2979 from hathach/fix-407blackvet
fix build for 407blackvet
2025-02-06 12:43:46 +07:00
hathach
efd2934919 fix build for 407blackvet 2025-02-06 12:19:29 +07:00
Jannis Konrad
f7fa4d0edb ch32v3 fs: signal bus speed 2025-02-05 17:36:38 +01:00
HiFiPhile
eca025f714 Merge pull request #2959 from ho-ho-ho/master
stm32: fix compilation error when not using uart
2025-01-27 20:23:52 +01:00
HiFiPhile
67f0d610e5 Merge branch 'master' into master 2025-01-27 19:27:47 +01:00
Ha Thach
0d4f945bdc Merge pull request #2962 from hathach/zephyr-support
Initial Zephyr support
2025-01-26 00:24:25 +07:00
hathach
882cb1406d update cmake.xml 2025-01-25 23:50:09 +07:00
hathach
7641060252 Merge branch 'master' into zephyr-support 2025-01-25 23:48:05 +07:00
Ha Thach
37e6f49619 Merge pull request #2964 from hathach/fix-2939
fix bug introduced by 2939, with correct offset check logic
2025-01-25 23:46:06 +07:00
hathach
f6f02f1893 correct offset check logic 2025-01-25 23:07:34 +07:00