Tomas Rezucha
6476ff1241
fix(ncm): Return invalid NTBs to free list
...
In case we received invalid datagram, we silently fail
a the buffer was not returned to empty list -> it was lost.
If this happened more than CFG_TUD_NCM_OUT_NTB_N times, we run out of
NTBs and all OUT transfers are NACKed.
Closes https://github.com/espressif/esp-usb/issues/107
2025-01-15 19:16:58 +01:00
Tomas Rezucha
679065c3d6
fix(ncm): Use IN buffer for transmit checks
2025-01-14 16:56:24 +01:00
Ha Thach
dbc2c8d972
Fix missing protoype warning, change TUD_EPBUF_TYPE_DEF order ( #2889 )
...
* change TUD_EPBUF_TYPE_DEF order
* add and fix -Wmissing-prototypes warnings for cmake (skip make)
2024-11-27 18:28:12 +07:00
hathach
07d47ba487
fix ncm incorrect length for notify connection
2024-11-22 20:21:12 +07:00
hathach
5c18a32aaa
add TUD_EPBUF_DEF for ecm rndis, also separate notify and control buffer, use edpt_claim() to prevent race condition
2024-11-22 20:09:29 +07:00
hathach
7831af3ccf
update epnotif endpoint for ncm_device.c
2024-11-22 16:46:26 +07:00
hathach
1533e693ee
TUD_EPBUF_TYPE_DEF ncm_device
2024-11-22 15:45:08 +07:00
Hardy Griech
6b0b889f25
avoid recursions in tud_network_recv_renew()
2024-07-15 18:15:01 +02:00
hathach
2be72a97b8
minor update
2024-06-14 17:55:36 +07:00
hathach
969b06d77c
minor update
2024-06-14 12:51:50 +07:00
Ha Thach
3e2ea77506
More ci tweak ( #2636 )
...
* change concurrency group to ${{ github.workflow }}-${{ github.ref }}
* use argparse for build.py hil_test.py, remove the need to install click
* move ci win/mac to build_cmake.yml
* rename build_family.yml to build_util.yml
* build_util.yml support esp32
* integrate build-espressif into build.yml
* build.py support make with --board option
* add get_deps action
* update hil test to reuse action
2024-05-10 18:55:43 +07:00
HiFiPhile
4abdfc10f5
Merge branch 'master' into remove-tud_network_link_state_cb
2024-05-07 12:32:28 +02:00
HiFiPhile
91d69fa942
Reformat NCM class.
2024-05-07 00:10:26 +02:00
Hardy Griech
cc70958c16
mostly comments
2024-05-05 21:18:57 +02:00
Hardy Griech
ea55537fb2
minor changes due to CR with HiFiPhile
2024-05-05 20:33:01 +02:00
HiFiPhile
327e3ec4bd
Stall unsupported class request.
2024-04-28 21:59:54 +02:00
HiFiPhile
a29852320a
Merge remote-tracking branch 'upstream/master' into pr/2227
2024-04-28 19:46:00 +02:00
hathach
c3c0648456
add class driver deinit
2024-04-08 22:07:56 +07:00
Hardy Griech
f1d3663d24
minor changes to comments and debug output
2023-09-08 07:01:13 +02:00
Hardy Griech
51ea467350
removed debug comment
2023-08-31 20:34:12 +02:00
Hardy Griech
1dd9fa3f30
code review: changed to TinyUSB log system
2023-08-31 20:24:56 +02:00
Hardy Griech
2c1addff4f
defined(ECLIPSE_GUI)
2023-08-20 18:27:06 +02:00
Hardy Griech
28107326da
bug fix recv/xmit_get_next_ready_ntb()
2023-08-20 18:24:08 +02:00
Hardy Griech
e4c18c101c
Copyright
2023-08-20 18:24:01 +02:00
Hardy Griech
d5da303f45
moved some declarations
2023-08-20 18:23:53 +02:00
Hardy Griech
fca08c939c
files taken from yapicoprobe
2023-08-20 18:23:32 +02:00
Hardy Griech
798ff807b3
removed obsolete tud_network_link_state_cb()
2023-08-11 18:04:34 +02:00
hathach
979bf32266
default class driver log level to CFG_TUH/TUD_LOG_LEVEL allow application to selectively disable usbd/usbh or driver log
2023-08-02 15:34:18 +07:00
hathach
ef49b93532
rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack
...
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-24 15:46:21 +07:00
Matt Mills
4274cab395
Update net_device.h
2023-03-22 07:18:27 -06:00
hathach
3623ba1884
fix trailing space and new line
...
temporarily disable codespell
2023-03-17 16:12:49 +07:00
hathach
498989ee00
use tu_static instead of static _fuzz_thread
2023-02-22 16:23:40 +07:00
hathach
03ec49450d
rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_thread
2023-02-22 11:47:09 +07:00
Nathaniel Brough
18c3095346
fix: Change all static variables to thread when fuzzing
2023-01-20 15:45:31 -08:00
hathach
d0ca6ca8f7
fix ncm warning
2022-12-27 18:21:56 +07:00
Bastien Nocera
6a2cf67289
Fix typos
2022-12-04 19:43:23 +07:00
hathach
9c56f70111
suppress error with net example
2022-06-27 20:30:47 +07:00
hathach
8b9cf152a0
rhport argument in usbd_ API() is not used (always use the initialized port)
...
remove the usage of TUD_OPT_RHPORT in class driver
2022-06-02 16:51:17 +07:00
hathach
d10326cb4e
rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
...
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25 18:35:21 +07:00
hathach
a6723f556d
add ncm.h for magic number
...
mostly clean up magic number
2021-10-11 12:36:03 +07:00
hathach
a867d87072
rename CFG_TUD_NET to CFG_TUD_ECM_RNDIS
2021-10-05 16:00:07 +07:00
Peter Lawrence
03d7988df3
add NCM driver in a compatible manner : hathach/tinyusb#550
2021-09-25 17:05:58 -05:00
hathach
7c66c5121b
update doc
2021-05-27 19:31:55 +07:00
hathach
9736e54734
include clean up
2021-05-27 17:40:39 +07:00
hathach
c4bc8b2561
migrate net device to new control xfer cb
2020-11-20 16:59:33 +07:00
Jacob Potter
3ea8138750
Rename CDC_COMM_SUBCLASS_ETHERNET_NETWORKING_CONTROL_MODEL
...
This was a confusing name; "Ethernet control model" (CDC ECM)
and "network control model" (CDC NCM) are two separate USB subclasses.
2020-10-31 10:57:53 -06:00
Peter Lawrence
a097b7e51a
net_device: re-factor code so as to not be specific to lwIP
2020-10-24 20:27:57 -05:00
Peter Lawrence
f5b72f5796
net_device: tweak 'pbuf chain' implementation
2020-10-24 17:29:47 -05:00
Ha Thach
78f1576e93
Merge pull request #412 from hathach/fix-net-cast-align
...
suppress cast-align warnings for net device driver
2020-07-29 11:23:11 +07:00
hathach
ab75998316
Merge branch 'master' into add-stm-hs
2020-06-30 01:55:57 +07:00