Commit Graph

87 Commits

Author SHA1 Message Date
sakumisu
bff8a632a9 feat(class): add usb_osal_thread_schedule_other to allow the applications which use the struct usbh_xxx to exit properly before free struct usbh_xxx
Signed-off-by: sakumisu <1203593632@qq.com>
2025-06-03 22:43:35 +08:00
sakumisu
bf2ba7324a update(class): replace ecm & rndis USB_ERR_NOTDEV with USB_ERR_NOTCONN
Signed-off-by: sakumisu <1203593632@qq.com>
2025-05-07 19:48:39 +08:00
sakumisu
cf22bcf252 update(class/wireless/usbd_rndis): use usbd_rndis_start_write for usbd_rndis_eth_tx
Signed-off-by: sakumisu <1203593632@qq.com>
2025-05-07 18:09:19 +08:00
sakumisu
d3de69ae38 update(class/wireless/usbd_rndis): enable indicate msg for sending connect status
Signed-off-by: sakumisu <1203593632@qq.com>
2025-04-29 16:25:45 +08:00
sakumisu
dd8ec4bbcf fix wformat warning
Signed-off-by: sakumisu <1203593632@qq.com>
2025-04-19 23:01:59 +08:00
sakumisu
9a26c50900 fix: fix wformat warnings
Signed-off-by: sakumisu <1203593632@qq.com>
2025-03-28 22:39:30 +08:00
sakumisu
83695e77cf update: add usb align up for every buffer when use dcache clean&invalid api
Signed-off-by: sakumisu <1203593632@qq.com>
2025-03-28 13:29:04 +08:00
sakumisu
95baa7845c chore: fix wformat warning
Signed-off-by: sakumisu <1203593632@qq.com>
2025-01-26 13:18:50 +08:00
sakumisu
6769eac6e0 feat(osal): add argument macro for different os, especially for nuttx
Signed-off-by: sakumisu <1203593632@qq.com>
2025-01-20 18:23:59 +08:00
sakumisu
76b7a0172b update(class/wireless/usbd_rndis): support transfer api for enet & wireless without lwip
Signed-off-by: sakumisu <1203593632@qq.com>
2025-01-16 18:17:50 +08:00
sakumisu
24fc172ad8 update(demo/usbd_rndis): update send & recv done api, add check for this demo 2024-11-11 21:50:13 +08:00
electretmike
149fb046bc fix: rename class to class_code, for c++ compatibility (#269)
Co-authored-by: Michiel van Leeuwen <michiel@embeddedacoustics.com>
2024-10-30 15:11:46 +08:00
sakumisu
df888eb9bc update(class/wireless/usbh_rndis): reduce rndis control buffer 2024-09-28 14:32:13 +08:00
sakumisu
02340e0f44 chore: static code analysis 2024-09-19 09:50:18 +08:00
sakumisu
35da8d6747 fix: fix -Wunused-parameter warning with -Wextra cflag 2024-08-21 20:08:47 +08:00
sakumisu
eb147d7276 fix: fix typo 2024-07-13 10:13:37 +08:00
sakumisu
6c92681e48 refactor(platform): add usbh_xxx_get_eth_txbuf api, especially for lwip pbuf list 2024-06-25 17:18:19 +08:00
sakumisu
755d067650 update: check class->hport validity 2024-06-23 14:16:57 +08:00
sakumisu
8a4f210ee7 fix memcpy to strncpy 2024-06-16 23:40:15 +08:00
sakumisu
3429f73a65 update: add comments for net process, support len > 16K for ncm/rndis/asix/rtl8152 2024-06-01 18:54:51 +08:00
sakumisu
ba098529af update(class/wireless/usbd_rndis): print max pkts and size in init msg resp 2024-05-31 22:44:19 +08:00
sakumisu
2d63b52d0b feat: use fast memcpy for net 2024-05-31 22:31:43 +08:00
sakumisu
5f28438eec fix(class/wireless/usbd_rndis): change total size to 1558 2024-05-30 16:29:45 +08:00
sakumisu
865d2f5d96 refactor(platform): update platform support 2024-05-24 22:49:18 +08:00
sakumisu
f24c37d3aa update(class/wireless/usbd_rndis): remove ununsed speed field 2024-05-20 18:15:01 +08:00
sakumisu
13e4670f3d update: remove internal configs, you should get config from usb_config.h 2024-05-17 17:04:53 +08:00
sakumisu
490cac1a0f fix(class): change ifdef to if for LWIP_TCPIP_CORE_LOCKING_INPUT 2024-05-14 13:59:39 +08:00
sakumisu
207fb7b128 update(usbh_ncm/usbh_rndis): limit read size to 16K 2024-05-14 13:53:58 +08:00
sakumisu
d23a8a8d00 update: get mps by usbd_get_ep_mps 2024-05-14 11:33:11 +08:00
sakumisu
074662a50d fix(class/wireless/usbh_rndis): when last data is dummy byte, ignore it 2024-05-12 20:47:33 +08:00
sakumisu
b55d40e512 change CONFIG_USBDEV_RNDIS_ETH_MAX_FRAME_SIZE to 1580 default 2024-05-11 14:01:42 +08:00
sakumisu
cdd308f3e8 fix typo 2024-05-04 15:48:45 +08:00
sakumisu
0ceb7ef885 zero copy when enables LWIP_TCPIP_CORE_LOCKING_INPUT 2024-05-03 19:53:22 +08:00
sakumisu
ae5a9d1e57 check if eth rx packet is overflow 2024-05-03 19:19:17 +08:00
sakumisu
5fec929b93 support id table for multi vid pid 2024-05-03 18:54:36 +08:00
sakumisu
6abe6befa8 fix rndis msg when mss is larger than rndis rx size 2024-04-28 19:54:53 +08:00
sakumisu
23e2787a43 add user_data param in host class for users 2024-04-24 22:40:55 +08:00
sakumisu
a24d2bdc07 fix rndis send dummy 2024-04-23 21:30:59 +08:00
sakumisu
8995cf9568 move rndis config macros into template 2024-04-18 21:27:34 +08:00
Zhihong Chen
0d647cf9c0 rndis: fix MessageLength check
- when MessageLength is MPS, PC rndis host will send (MPS + 1) bytes

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-03-23 22:19:15 +08:00
sakumisu
762c3cbb2f add get_connect_status api for rndis/cdc_ecm/asix 2024-02-24 10:49:11 +08:00
sakumisu
64773ab5e8 remove duplicate class info 2024-02-22 22:32:27 +08:00
sakumisu
49116c6fbc format code 2024-02-09 12:08:08 +08:00
sakumisu
d1c7fa8c19 support multi port api for device 2024-02-06 19:52:22 +08:00
sakumisu
eeb304ae08 update log tag 2024-01-30 23:04:35 +08:00
sakumisu
feb69dcd95 add zephyr bluetooth submodule 2024-01-29 21:14:35 +08:00
sakumisu
cdfb7c3fb2 support hci usb h4 for usb bluetooth 2024-01-25 22:06:39 +08:00
sakumisu
24511c4d4b fix actual len position 2024-01-23 22:05:10 +08:00
sakumisu
45cca3930b update bluetooth rx callback, add zephyr bluetooth stack porting 2024-01-09 21:18:59 +08:00
sakumisu
b37f494304 support usb ble host 2024-01-06 12:53:22 +08:00