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.
6 years, 6 months ago. This question has been closed. Reason: Off Topic
如何設定CTS、RTS
我是mbed的新手,使用ST 476RG的板子,要測試'CTS的功能,在網上查是需用set_flow_control(Flow type, PinName flow1=NC, PinName flow2=NC);這副程式,但是我引用後,卻沒有任何改變,CTS的腳位未有high、low的變化,想請教各位如何設定? 以下是程式 Serial pc(USBTX, USBRX);
void bt_init(){
pc.baud(9600); pc.set_flow_control(Serial::RTSCTS,PA_1,PA_0);
for(i=0;i<500;i++) { pc.printf("%d\n",i); }
pc.putc(pc.getc()); wait(5); }