Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Communication/RS485/RS485.cpp
- Revision:
 - 31:17be2176063f
 - Parent:
 - 30:8f092276b2ba
 - Child:
 - 41:99a1158f3eca
 
diff -r 8f092276b2ba -r 17be2176063f Communication/RS485/RS485.cpp
--- a/Communication/RS485/RS485.cpp	Tue Oct 22 02:03:26 2019 +0000
+++ b/Communication/RS485/RS485.cpp	Tue Oct 22 02:04:30 2019 +0000
@@ -9,8 +9,8 @@
     
     DigitalOut selectBitT(SELECTBIT_T_PIN);
 //  DigitalOut selectBitR(SELECTBIT_R_PIN);
-//    Serial RS485Uart(RS485UART_TX, RS485UART_RX);
-    Serial RS485Uart(USBTX, USBRX);
+    Serial RS485Uart(RS485UART_TX, RS485UART_RX);
+//    Serial RS485Uart(USBTX, USBRX);
     Serial RS485Line(RS485LINE_TX, RS485LINE_RX);
     
     bool readFase = 0;
@@ -22,7 +22,7 @@
     void RS485::Initialize() {
         selectBitT = 1;  //送信固定
 //      selectBitR = 0;  //受信固定
-        RS485Uart.baud(9600);  // 38400
+        RS485Uart.baud(38400);  // 38400
         RS485Uart.attach(Transmit, Serial::TxIrq);  //送信割り込み
         RS485Line.baud(9600);  
         RS485Line.attach(Recieve, Serial::RxIrq);  //受信割り込み