JianyuWang0623 commented on code in PR #3098: URL: https://github.com/apache/nuttx-apps/pull/3098#discussion_r2152338561
########## system/fastboot/fastboot.c: ########## @@ -217,6 +267,28 @@ static const struct memory_region_s g_memory_region[] = }; #endif +#ifdef CONFIG_USBFASTBOOT +struct fastboot_transport_s g_transport_usb = +{ + .init = fastboot_usbdev_initialize, + .deinit = fastboot_usbdev_deinit, + .read = fastboot_usbdev_read, + .write = fastboot_usbdev_write, +}; +#endif + +#ifdef CONFIG_NET_TCP +struct fastboot_transport_s g_transport_tcp = +{ + .init = fastboot_tcp_initialize, + .deinit = fastboot_tcp_deinit, + .read = fastboot_tcp_read, + .write = fastboot_tcp_write, +}; + +static uint64_t g_read_left; Review Comment: moved to `ctx->tcp_read_left`, as comment below. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org