-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Add rts dtr and baudrate public functions in CDC Serial_ class #1179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This permit to use the CDC serial link like a modem. For example configuration mode while DTR is low and data mode otherwise. Signed-off-by: Stany MARCEL <stanypub@gmail.com>
Can I build this pull request? |
Yes I think so, I can't see any reason it should not work. |
@ynsta sorry for the comment from arduinobot. we are setting up automated build of all PRs, so that we can provide a downloadable version of the patched IDE |
Code looks good to me. I don't think we can really make this API generic, so just adding it in |
"ynsta commented on 19 Dec 2012" |
arduino/Arduino#2469 Weak implementation sounds usefull but takes 6 more bytes of flash/ function (12). Even more, if we would also pass the line states but the user can read this with Serial.dtr() for example. arduino/Arduino#1179 Should we inline the Serial.dtr() functuions etc? But then we need to move the line info to the header as well, also the definition. These optional functions only take flash if they are used. Virtual isnt used, because this would take more flash for no reason. Syntax like this: https://www.pjrc.com/teensy/td_serial.html
Fixed with 96f7b96 |
arduino/Arduino#2469 Weak implementation sounds usefull but takes 6 more bytes of flash/ function (12). Even more, if we would also pass the line states but the user can read this with Serial.dtr() for example. arduino/Arduino#1179 Should we inline the Serial.dtr() functuions etc? But then we need to move the line info to the header as well, also the definition. These optional functions only take flash if they are used. Virtual isnt used, because this would take more flash for no reason. Syntax like this: https://www.pjrc.com/teensy/td_serial.html
arduino/Arduino#2469 Weak implementation sounds usefull but takes 6 more bytes of flash/ function (12). Even more, if we would also pass the line states but the user can read this with Serial.dtr() for example. arduino/Arduino#1179 Should we inline the Serial.dtr() functuions etc? But then we need to move the line info to the header as well, also the definition. These optional functions only take flash if they are used. Virtual isnt used, because this would take more flash for no reason. Syntax like this: https://www.pjrc.com/teensy/td_serial.html
This permit to use the CDC serial link like a modem. For example configuration
mode while DTR is low and data mode otherwise.
Signed-off-by: Stany MARCEL stanypub@gmail.com