chore: update zephyr code

Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
sakumisu
2025-05-14 22:45:38 +08:00
parent 383d9b3141
commit 43692c0ba2
5 changed files with 114 additions and 33 deletions

View File

@@ -31,6 +31,10 @@ lwip support with usb host net class(cdc_ecm/cdc_ncm/cdc_rndis/asix/rtl8152/bl61
- filx support with usb host msc.
## Zephyr
- shell support with lsusb
## LVGL
- lvgl indev support with usb host mouse and keyboard. support both LVGL8.x.x and LVGL9.x.x

12
platform/zephyr/usb_cmd.c Normal file
View File

@@ -0,0 +1,12 @@
#include <zephyr/shell/shell.h>
#if CONFIG_CHERRYUSB_HOST
#include "usbh_core.h"
static void shell_lsusb_handle(const struct shell *sh, size_t argc, char **argv)
{
ARG_UNUSED(sh);
lsusb(argc, argv);
}
SHELL_CMD_REGISTER(lsusb, NULL, "Usage: lsusb [options]...\r\n", shell_lsusb_handle);
#endif