Skip to main content
summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorDoug Schaefer2017-05-17 13:57:01 -0400
committerDoug Schaefer2017-05-23 16:41:00 -0400
commit0880413e98069b52e3cb1f3e00da7336a8b82a64 (patch)
treedc6313ef8c154ac7a55bfaf347d081b847a4d253 /native
parente74222b86c8ad35cc1534f370ca11587d8365efb (diff)
downloadorg.eclipse.cdt-0880413e98069b52e3cb1f3e00da7336a8b82a64.tar.gz
org.eclipse.cdt-0880413e98069b52e3cb1f3e00da7336a8b82a64.tar.xz
org.eclipse.cdt-0880413e98069b52e3cb1f3e00da7336a8b82a64.zip
Bug 516836 Terminal support for Arduino.
Add Arduino Serial Monitor as a Terminal Connector type. It uses the Terminal's new cdtserial connector for communication and adds a config panel that lets you pick the Arduino remote connection to auto select the serial port. Also switched the Arduino launch to fetch the serial port out of the global registry to pause and resume the port while launching. The Terminal does not use the remote connection to get the serial port. Note: also adding the terminal as a dependency for builds. Yes, further adds to our build cycle, but we're dealing with it so far with o.e.remote. Change-Id: I5a7cc9ffbf8ae60cd86e0e5440547d12202acbac
Diffstat (limited to 'native')
-rw-r--r--native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java b/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java
index 24c9002cfb..e6b6c89aac 100644
--- a/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java
+++ b/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java
@@ -365,7 +365,8 @@ public class SerialPort {
public void resume() throws IOException {
synchronized (pauseMutex) {
isPaused = false;
- open();
+ handle = open0(portName, baudRate.getRate(), byteSize.getSize(), parity.ordinal(), stopBits.ordinal());
+ isOpen = true;
pauseMutex.notifyAll();
}
}

Back to the top