ecf2d82159
* Synchronize the code of the rt mart branch to the master branch. * TTY device * Add lwP code from rt-smart * Add vnode in DFS, but DFS will be re-write for rt-smart * There are three libcpu for rt-smart: * arm/cortex-a, arm/aarch64 * riscv64 Co-authored-by: Rbb666 <zhangbingru@rt-thread.com> Co-authored-by: zhkag <zhkag@foxmail.com>
24 lines
503 B
C
24 lines
503 B
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include <usb/sunxi_hal_udc.h>
|
|
#include <hal_cmd.h>
|
|
#include <hal_log.h>
|
|
|
|
#include "usb_msg.h"
|
|
|
|
static int cmd_gadget_test(int argc, const char **argv)
|
|
{
|
|
hal_log_info("usb msg desc init\n");
|
|
usb_msg_desc_init();
|
|
hal_log_info("hal udc init\n");
|
|
hal_udc_init();
|
|
hal_udc_register_callback(usb_msg_callback);
|
|
return 0;
|
|
|
|
}
|
|
FINSH_FUNCTION_EXPORT_CMD(cmd_gadget_test, hal_udc, udc hal APIs tests)
|
|
|