Andrew Leech
b6ce41188e
examples/device/net_lwip_webserver: Simplify example code.
...
Now that tud_network_recv_renew has protections against recursion it's
safe and simpler to handle the lwip frame entirely in the same callback.
2025-05-29 09:36:38 +10:00
Andrew Leech
5de4a23abe
Add USB NCM link state control support
...
This adds the ability to dynamically control the network link state
for NCM devices. The host OS will see the network interface as
connected/disconnected based on the link state.
New API:
- tud_network_link_state(rhport, is_up): Set link up/down state
Example updates:
- Added button control to toggle link state
- Fixed LWIP integration to properly handle link state changes
- Added printf to show correct protocol (NCM vs RNDIS/ECM)
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-05-29 09:36:38 +10:00
hathach
79373afaaf
Merge branch 'master' into fork/HiFiPhile/lwip_fix
2024-11-28 16:11:30 +07:00
hathach
1f18be93db
change the tusb_rhport_init_t struct, exclude the rhport to make API more consistent
2024-10-14 18:27:52 +07:00
hathach
92602b9de3
change tusb_init(), tusb_rhport_init() to use init struct for expandability
2024-10-11 13:41:53 +07:00
hathach
57aac432b5
add new tusb_int_handler(rhport, in_isr) as common irq handler
...
update tusb_init() to take rhport and role, defined as macro with optional argument for backward compatible
2024-10-10 16:28:36 +07:00
Stéphane Lenclud
3d3dcb1ee9
service_traffic: Don't call pbuf_free when ethernet_input is Ok
2024-10-05 15:51:02 +02:00
HiFiPhile
0f4ea8e918
Enable NCM + iperf for MCU with bigger RAM.
2024-05-07 00:23:50 +02:00
HiFiPhile
d25ee82d3f
Reformat net_lwip_webserver example.
2024-05-07 00:17:09 +02:00
hathach
ef5bd9ee6c
Merge branch 'master' into enhance-bsp
2023-08-04 00:31:12 +07:00
hathach
cf91660cee
rename hw/bsp/board.h to board_api.h
2023-08-03 15:44:05 +07:00
hathach
3f788a4e5a
enable USBMC for uno r4, add board_init_after_tusb() API
...
add BOARD_UPPERCASE for board detection
2023-07-31 19:09:40 +07:00
Matt Mills
033627ee41
Remove const from tud_network_mac_address in example and test files
2023-03-22 07:30:46 -06:00
hathach
3623ba1884
fix trailing space and new line
...
temporarily disable codespell
2023-03-17 16:12:49 +07:00
hathach
9794a2b865
more example update
2022-06-06 22:41:04 +07:00
Peter Lawrence
d42b5604ce
net_lwip_webserver: allow users to enable LWIP_IP6 if desired
2021-10-19 11:29:51 -05:00
Peter Lawrence
03d7988df3
add NCM driver in a compatible manner : hathach/tinyusb#550
2021-09-25 17:05:58 -05:00
Peter Lawrence
5a8ea0e0e2
net_lwip_webserver: further simplify pbuf_copy_partial() usage
2021-08-16 17:04:57 -05:00
Peter Lawrence
b682ce916a
net_lwip_webserver: utilize pbuf_copy_partial()
2021-08-02 20:52:45 -05: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
56277ce216
net_lwip_webserver: efficiency tweaks
2020-10-14 20:26:40 -05:00
Peter Lawrence
35fae201fb
net_lwip_webserver: tweak main.c comments with smartphone suggestions
2020-10-10 16:49:45 -05:00
Peter Lawrence
7fa8d87291
usbnet: remove CDC-EEM
2020-04-14 21:10:43 -05:00
Ha Thach
57ffa94a52
Merge pull request #334 from majbthrd/usbnet_osagnostic
...
usbnet: OS-agnostic (Windows/Linux/macOS) network driver
2020-04-14 17:39:50 +07:00
Peter Lawrence
3f1583dd0f
net_lwip_webserver: add support for lwip timeouts
2020-04-12 16:13:52 -05:00
Peter Lawrence
bb3bbcc00b
usbnet: OS-agnostic (Windows/Linux/macOS) network driver
2020-04-12 15:41:18 -05:00
Peter Lawrence
622a6c77a1
usbnet: tweak CDC-ECM after MacOS testing
2020-03-27 20:30:57 -05:00
hathach
8a8f84cd37
more rename
2020-03-09 23:05:22 +07:00