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
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
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
fca08c939c
files taken from yapicoprobe
2023-08-20 18:23:32 +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
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
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