【海奇hcrots】

■ USB 读TF卡功能。 ok

打开对应配置
阅读文档:
hcRTOS USB gadget mass-storage 驱动说明.pdf
对应配置上

操作步骤:

hc1512a@dbE100(nsh)# exit
hc1512a@dbE100# ls
hc1512a@dbE100# usb
hc1512a@dbE100(usb)# help
Commands available:
  help                 Show available cmds
  exit                 Exit from current cmd set
  history              Show history cmds
  g_get_cap            usb/sd get cap
  at_cmd               send AT command to 4G net device
  hid_mouse_demo       usb hid: get input event from USB Mouse, and send these data to usb hid gadget
  hid_kbd_demo         usb hid: get input event from USB keyboard, and send these data to usb hid gadget
  hid                  usb hid: get input event from USB keyboard
  hid_gadget_test      hid gadget test
  g_zero               setup USB as zero device demo
  g_ncm                setup USB as NCM device demo
  g_serial_test        setup USB as serial console test demo
  g_serial             setup USB as serial console
  g_mass_storage       setup USB as mass-storage device
  gadget               usb debug test for OTG switch
  host                 usb debug test for switch to host
hc1512a@dbE100(usb)# g_mass_storage -p 0 /dev/mmcblk0p2
logic unit numbers: 1
logic unit(LUN:0) path: /dev/mmcblk0p2
 ==> (usb gadget) (lun:0) file:/dev/mmcblk0p2
hc1512a@dbE100(usb)#  ==> usb#0 gadget connect
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

光芒Shine

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值