Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 10 months ago.
Can I use UART Pins with RTS/CTS flow Controll?
Hi everyone.
My target board is HRM1017 and I need to use UART with hardware control. So I use 'Serial::set_flow_control' function like following code,but I get error message <Class "mbed::Serial" has no member "set_flow_control" in "main.cpp" > and I fail to compile.
I wonder that what is wrong?mbed library or others?
In any event, I want to know how can I use UART with RTS/CTS controll. Could you tell me how to solve the problem?
日本語でも大丈夫です(^ω^)
///sample Code//////
- include "mbed.h"
Serial TestUART(p9,p11);
int main() { TestUART.set_flow_control(RTSCTS,p8,p10);
while(1){ TestUART.printf("Hello World \n"); wait(1); } RefFrom::http://developer.mbed.org/handbook/Serial }
////Error/////////
Error: Class "mbed::Serial" has no member "set_flow_control" in "main.cpp", Line: 6, Col: 18 Error: Identifier "RTSCTS" is undefined in "main.cpp", Line: 6, Col: 35
//////////////