summaryrefslogtreecommitdiff
path: root/components/drivers/usb/usbdevice/class/cdc_vcom.c
AgeCommit message (Collapse)Author
2023-02-07rt_device_write/read return data type as rt_ssize_tMeco Man
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-01-02USB ↵kylongmu
CDC驱动在win11下无法识别,看了微软的描述修改子类后正常 (#6783) 这是微软关于此问题的链接: https://learn.microsoft.com/zh-cn/windows-hardware/drivers/usbcon/usb-driver-installation-based-on-compatible-ids#usbsersys-installation Windows 10 及更高版本 从 Windows 10 开始,Usbser.inf 已添加到 %Systemroot%\INF 目录,该目录加载 Usbser.sys 作为设备堆栈中功能设备对象 (FDO) 。 如果设备属于通信和 CDC 控制设备类, Usbser.sys 加载。 无需编写自己的 INF 来引用驱动程序。 驱动程序是基于与包含在 Windows 中的其他 USB 设备类驱动程序相似的兼容 ID 匹配来加载的。 USB\Class_02 USB\Class_02&SubClass_02 如果要自动 加载Usbser.sys, 在设备描述符中将类代码设置为 02,将子类代码 设置为 02。 有关详细信息,请参阅 USB 通信设备类。 使用此方法时,无需为设备分发 INF 文件,因为系统使用的是 Usbser.inf。 如果设备指定类代码 02,但子类代码值不是 02,则 Usbser.sys不会自动加载 。 即插即用管理器尝试查找驱动程序。 如果找不到合适的驱动程序,则设备可能未加载驱动程序。 在这种情况下,你可能需要加载自己的驱动程序或编写引用另一个内置驱动程序的 INF。
2022-12-11[rtdef] use lower-case to define attributes (#6728)Man, Jianting (Meco)
* [rtdef] rename RT_WEAK attribute as rt_weak * [rtdef] rename RT_USED attribute as rt_used * [rtdef] rename RT_SECTION attribute as rt_section * [rtdef] rename ALIGN attribute as rt_align * [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-11-14Modified bsp/stm32/libraries/HAL_Drivers/drv_usbd.cmyshow2258
Modified components/drivers/usb/usbdevice/class/cdc_vcom.c 修复cdc在v1v2的serial框架下接收发送错误的问题.stm32下usbd添加更多的ep_id,以支持复合设备.
2022-04-28硬件驱动(VCOM):增加获取USB虚拟串口连接状态的接口 ↵BreederBai
(#5881) * 硬件驱动(VCOM):增加获取USB虚拟串口连接状态的接口
2022-04-20uniform code writing-disable interruptthewon86
2021-12-30[components][usb] fix compile warning in cdc_vcom.cnongxiaoming
2021-10-14[cdc_vcom.c]adapt to both v1 and v2 of serialmazhiyuan
2021-10-14修复cdc_vcom.c中的一些编译问题mazhiyuan
2021-03-16Merge branch 'master' into compdillon-min
2021-03-11component: driver: usb: Add usb interface string(iInterface) settingDillon Min
To make compositive usb device string more reansonable, not all devices just show same "RTT Composite Device" on windows device manager. add a interface rt_usbd_device_set_interface_string to set respective interface string. Signed-off-by: Dillon Min <[email protected]> v1 -> v2: remove all tabs to space, to match rt-thread coding style
2021-03-08[compoenets] auto & manual formattedMeco Man
2020-11-21Update cdc_vcom.cDavid Lin
2020-07-03merge latest usb class with workaroundhphuang
2020-03-21Update cdc_vcom.cDavid Lin
2020-01-17添加虚拟串口接收缓存的 ENV ↵Ihavedone
配置项,可手动配置接收缓存大小,默认为128字节
2019-02-03Fixed data loss issue when USB CDC serial works in dma transmission mode.weety
2018-10-26[components][drivers][usb][usb_device][cdc_vcom]: Add 'RT_VCOM_TX_TIMEOUT' ↵Peter Zhang
to configure TX_TIMEOUT whick may block vcom tx thread for a long time. Add 'RT_VCOM_TASK_STK_SIZE', 'RT_VCOM_TX_USE_DMA', 'RT_VCOM_SERNO', 'RT_VCOM_SER_LEN', 'RT_VCOM_TX_TIMEOUT' to Kconfig
2018-10-22[Components][drivers][usb]修复非对齐访问异常zyh
2018-10-14[license] Change license to Apache.Bernard Xiong
2018-09-10修正drivers下,armclang编译时的警告或错误 ↵liruncong
注:vcom_tx_thread_entry下, if(!res & CDC_TX_HAS_DATE)应为bug.
2018-08-28消除usb结构体gcc编译时的相关警告liruncong
2018-04-24[Coponents][USB device]add class register interfacezyh
2018-03-16[Components][USB Device]各个class对HS进行了适配ZYH
部分class还不支持HS,RNDIS存在暂时无法解决的已知bug
2018-03-15fix cdc_vcom.c notify receive data.charlown
2018-02-06[Components][Drivers][USB]vcom dma_tx模式下根据bulk ↵ChunfengMu
in提交能力限制tx_ringbuffer的填充长度,避免对下次bulk in传输造成影响.
2018-01-311:解决主机端未打开串口时,设备端应用程序dma模式下操作v ↵ChunfengMu
com发送数据时,dataqueue条目泄漏的问题。
2018-01-30Update cdc_vcom.cChunfengMu
2018-01-301:解决未使用串口设备时,bulkout端点接收数据触发断言的� ↵ChunfengMu
��题。
2018-01-24[Components][Drivers][USB]fix compiling errorsChunfengMu
2018-01-22[Components] driver usb vcom fix error for console (#1160)Aubr.Cool
* [Components] driver usb vcom fix error for console
2018-01-191:修复cdc_vcom命令处理错误,SetLineCoding命令用于设置一些vc ↵ChunfengMu
om参数,在此处判定vcom连接状态不合适,因通过SetControlLineState命令wValue字段最低位进行判断。
2017-11-11[usb]update usb stacktangyuxin
2014-07-131. Fix some spell error;shaolin
2. Fix data transfer size calculate error issue;
2014-02-16Update USB Device Stack to support more device controllers;shaolin
Pass USB CV test verification; Code cleanup;
2013-08-19ringbuffer: fix the ambiguous nameGrissiom
RT_RINGBUFFER_SIZE could mean "the size of the whole buffer", "the size of the empty space" or "the size of the data". Moreover, it's never a micro anymore. Change it to rt_ringbuffer_data_len before it's too late. Also, RT_RINGBUFFER_EMPTY is changed to rt_ringbuffer_space_len.
2013-06-28Embedded GPLv2 license in driversyiyue.fang
2013-05-25cdc_vcom: reset the vcom state in proper casesGrissiom
Reset the vcom state in class_{run,stop} and when the PC is not receiving data from me.
2013-05-12cdc_vcom: not to start sending data when the data is already sendingGrissiom
We start the sending transaction in SOF handler. But if the data is already sending, start an other transaction will cause data lose. Implement a state machine is cdc_vcom and avoid that.
2013-05-10cdc_vcom: send data as many as possibleGrissiom
The data filled into dcd_ep_write does not to be limited by MaxPacketSize.
2013-05-10cdc_vcom: send a zero-length-packet at the end is transactionGrissiom
2013-05-09cdc_vcom: fix the bug that use ringbuffer pool as usb packet bufferGrissiom
This commit set the buffer for packet to CDC_MaxPacketSize which is a reasonable value for it. However, maybe we should make CDC_{RX,TX}_BUFSIZE configurable as well.
2013-01-24class driver can custom string descriptionheyuanjie87
2013-01-09allows the user custom PID and VIDheyuanjie87
2013-01-08Re-normalizing the repoMing, Bai
2012-12-30change inferface handler parameter; add a protocol define[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2564 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-17Descriptor is no longer using the global variable[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2489 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-16fixed a warning[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2486 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-12change endpoint and class handler[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2476 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-25add USB composite and mass storage class features in USB device stack[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2447 bbd45198-f89e-11dd-88c7-29a3b14d5316