Thanks for point that, so my change will affect them by serial.c since it's in 
common logic (excatly, is in uart_read()).

________________________________
发件人: Gregory Nutt <spudan...@gmail.com>
发送时间: 2023年3月10日 23:58:29
收件人: dev@nuttx.apache.org
主题: Re: 答复: 答复: [External Mail]Re: [Breaking change] Echo character by serial 
driver

[外部邮件] 此邮件来源于小米公司外部,请谨慎处理。若对邮件安全性存疑,请将邮件转发给mi...@xiaomi.com进行反馈

> Emm, I confirmed that one of my test platform (esp32c3), its cdcacm driver 
> implement the uart_ops, but rp2040 seems not.
>
>
> CLE should works since it will override the content from driver ECHO if over 
> serial driver, but readline shouldn't echo input.
>
>
> I'll test more to confirm it.

cdcacm.c is the part that is similar to serial.c.  It implements the
serial driver interface and also interfaces with the lower level USB
device driver.  cdcacm.c resides at drivers/usbdev/cdcacm.c and it
common for all MCUs.  The MCU-specif logic has no idea that there is a
cdcacm "gadget" attached to it.

cdcacm.c implements the common uart_ops that are used by all MCUs to
support CDC/ACM serial.

pl2303.c is another USB serial device.  It also implements uart_ops and
has its own TERMIOS implementation.

#/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
 This e-mail and its attachments contain confidential information from XIAOMI, 
which is intended only for the person or entity whose address is listed above. 
Any use of the information contained herein in any way (including, but not 
limited to, total or partial disclosure, reproduction, or dissemination) by 
persons other than the intended recipient(s) is prohibited. If you receive this 
e-mail in error, please notify the sender by phone or email immediately and 
delete it!******/#

Reply via email to