-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding openipc runner on debug configuration to launch openipc through west debugserver Signed-off-by: Marta Navarro <[email protected]>
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...e.eclipse.core/src/org/zephyrproject/ide/eclipse/core/debug/jtagdevice/OpenIPCDevice.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright (c) 2008, 2012 QNX Software Systems and others. | ||
* Copyright (c) 2020 Intel Corporation | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
/* | ||
* Originally from org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.GenericDevice | ||
*/ | ||
|
||
package org.zephyrproject.ide.eclipse.core.debug.jtagdevice; | ||
|
||
import java.util.Collection; | ||
|
||
import org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagDeviceImpl; | ||
|
||
public class OpenIPCDevice extends DefaultGDBJtagDeviceImpl { | ||
|
||
@Override | ||
public String getDefaultPortNumber() { | ||
return "8086"; //$NON-NLS-1$ | ||
} | ||
|
||
@Override | ||
public void doDelay(int delay, Collection<String> commands) { | ||
addCmd(commands, "monitor sleep " + String.valueOf(delay * 1000)); //$NON-NLS-1$ | ||
} | ||
|
||
@Override | ||
public void doResetAndHalt(Collection<String> commands) { | ||
addCmd(commands, "monitor reset halt"); //$NON-NLS-1$ | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters