hathach
65e44e0a51
fix(dwc2) host driver conflict with max3421e
2025-03-06 22:46:21 +07:00
hathach
39e6375b74
midi host: skip rx data with all zeroes
2025-03-06 10:26:45 +07:00
hathach
8c0c21189c
Merge branch 'master' into fork/atoktoto/midihost
...
# Conflicts:
# src/host/usbh.c
2025-03-05 18:25:31 +07:00
hathach
5f447b76ad
- add tuh_descriptor_get_string_langid() API
...
- host enumeration always get language id, manufacturer, product and serial string. Which is required by some device such as 8bitdo
2025-03-03 23:22:23 +07:00
hathach
d132044b75
add tuh_midi_mount_cb_t struct for tuh_midi_mount_cb()
...
change tuh_midi_rx/tx_cb() to have xferred_bytes
rename tuh_midi_get_num_rx/tx_cables() to tuh_midi_get_rx/tx_cable_count()
use default empty callback instead of weak null to be compatible with keil compiler
2025-02-24 16:05:31 +07:00
hathach
56e84bd1a6
add desc_audio_control to midi descriptor callback
2025-02-24 14:40:32 +07:00
hathach
8c70475c23
change API to take index instead of dev address, this allow to support more than 1 midi per device.
2025-02-24 12:39:02 +07:00
hathach
b12c8a9012
remove CFG_MIDI_HOST_DEVSTRINGS support, we will leave that for application to parse/extract this information if needed
...
rename tuh_midi_configure() to mounted() for consistency
2025-02-21 17:31:13 +07:00
hathach
6ebd362cfd
Merge branch 'master' into fork/atoktoto/midihost
...
# Conflicts:
# src/host/usbh.c
2025-02-21 10:59:40 +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
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
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
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
HiFiPhile
09bce3532c
Add CMake presets.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-02-09 00:25:38 +01:00
hathach
cd0ca4832d
Merge branch 'refs/heads/master' into fork/jay94ks/styluspen
2025-02-07 16:37:51 +07:00
HiFiPhile
8d2310247c
Fix CI.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-02-02 14:01:15 +01:00
HiFiPhile
2707347dec
Update example.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-01-31 16:29:09 +01:00
HiFiPhile
a40722b221
Enable SIM_IO_TIME_MS for normal operation.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-01-29 17:21:11 +01:00
HiFiPhile
f43100bdfd
cdc_msc_freertos: add async IO support.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-01-29 15:28:19 +01:00
HiFiPhile
04b9e20310
msc_disk: fix overflow check when EP buffer size > 512.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-01-29 15:20:44 +01:00
hathach
7641060252
Merge branch 'master' into zephyr-support
2025-01-25 23:48:05 +07:00
hathach
f6f02f1893
correct offset check logic
2025-01-25 23:07:34 +07:00
hathach
8c7998b0e9
fix ci
2025-01-25 22:24:00 +07:00
hathach
dc514c6230
use board alias for pca10056
2025-01-25 15:12:57 +07:00
hathach
13856af935
add -DRTOS=zephyr to ci west build
2025-01-25 12:19:24 +07:00
hathach
b53801a8ac
add cmake RTOS=zephyr (default noos) for zephyr build
2025-01-24 15:06:05 +07:00
hathach
201b9707b9
try build zephyr with ci
2025-01-24 11:54:42 +07:00
hathach
9f45e25b1c
msc_dual_lun and cdc_msc work with zephyr on pca10056
2025-01-24 00:39:48 +07:00
hathach
0162d6ab32
kind of work with zephyr with pca10056 with cmake -DBUILD_ZEPHYR
2025-01-23 17:35:05 +07:00
hathach
31071ccf0e
kind of work with zephyr with pca10056 with cmake -DBUILD_ZEPHYR
2025-01-23 17:10:48 +07:00
HiFiPhile
19d28a9d15
Fix also cdc_msc example.
2025-01-22 21:24:14 +01:00
HiFiPhile
bd08753583
Fix CI.
2025-01-22 21:22:32 +01:00
hathach
6080f89f3d
- change to use CMAKE_SYSTEM_CPU to prevent CMAKE_SYSTEM_PROCESSOR conflict with zephyr
...
- change tinyusb CMakeLists.txt to function tinyusb_target_add() instead of defining tinyusb lib target
2025-01-22 22:31:08 +07:00
hathach
91214b4614
zephyr
2025-01-21 16:28:29 +07:00
hathach
c8130afe9b
bump up cmake min to 3.20
2025-01-21 16:28:26 +07:00
Ritvik
19b6baa455
Fix potential out of bounds access in msc_disk.c
2025-01-09 15:40:21 -05:00
Jay
eb1c2b83ef
trimed trailing whitespaces.
2024-12-23 22:19:35 +09:00
Jay
b029c94035
Modified example app.
2024-12-23 22:15:01 +09:00
Jay
15b1623aa3
add hid stylus pen device.
...
this works with android, for bypassing that absmouse does not support android.
note that, to hide cursor on android for every touch signal, find cursor option in android settings menu.
references:
1. https://stackoverflow.com/questions/28536602/hid-digitizer-descriptor-doesnt-perform-well-with-landscape-orientation
2. https://github.com/jonathanedgecombe/absmouse/blob/master/src/AbsMouse.cpp
2024-12-23 22:03:37 +09:00
hathach
a39e30db92
Merge branch 'refs/heads/master' into fork/HiFiPhile/rt1170
2024-12-17 11:16:27 +07:00
hathach
380bfc0a63
fix portenta build, added core-m85.cmake/mk
2024-12-13 18:16:19 +07:00
HiFiPhile
f10467e711
Merge branch 'master' into dcd_notif
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2024-12-01 00:01:33 +01:00