1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 552597: Add PEmicro definitions

Change-Id: If6a75356be914f3fc53ead1094cd78dc49998cce
Signed-off-by: John Dallaway <john@dallaway.org.uk>
This commit is contained in:
John Dallaway 2019-11-01 09:36:22 +00:00
parent 35338f28a3
commit 412d926a24
4 changed files with 59 additions and 1 deletions

View file

@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.cdt.debug.gdbjtag.core;singleton:=true
Bundle-Version: 9.3.100.qualifier
Bundle-Version: 9.4.0.qualifier
Bundle-Activator: org.eclipse.cdt.debug.gdbjtag.core.Activator
Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime,

View file

@ -13,6 +13,7 @@
# IBM Corporation
# John Dallaway - migrate device extensions to core plugin, bug 538282
# John Dallaway - SEGGER J-Link extension, bug 548281
# John Dallaway - PEmicro extension, bug 552597
###############################################################################
launchConfig.name=GDB Hardware Debugging
pluginName=Eclipse GDB Hardware Debug Core Plug-in
@ -25,6 +26,7 @@ MacraigorUsb2Demon.name=Macraigor USB2Demon
GenericSerial.name=Generic Serial
OpenOCDPipe.name=OpenOCD (via pipe)
OpenOCDSocket.name=OpenOCD (via socket)
PEMicro.name=PEmicro
SeggerJLink.name=SEGGER J-Link
Generic.name=Generic TCP/IP

View file

@ -57,6 +57,11 @@
id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.OpenOCDSocket"
name="%OpenOCDSocket.name">
</device>
<device
class="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.PEMicro"
id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.PEMicro"
name="%PEMicro.name">
</device>
<device
class="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.SeggerJLink"
id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.SeggerJLink"

View file

@ -0,0 +1,51 @@
/*******************************************************************************
* Copyright (c) 2008, 2019 QNX Software Systems and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* QNX Software Systems - Initial API and implementation
* Andy Jin - Hardware debugging UI improvements, bug 229946
* John Dallaway - PEmicro extension, bug 552597
*******************************************************************************/
package org.eclipse.cdt.debug.gdbjtag.core.jtagdevice;
import java.util.Collection;
/**
* @since 9.4
*/
public class PEMicro extends DefaultGDBJtagDeviceImpl {
@Override
public String getDefaultPortNumber() {
return "7224"; //$NON-NLS-1$
}
@Override
public void doDelay(int delay, Collection<String> commands) {
/* not supported */
}
@Override
public void doHalt(Collection<String> commands) {
/* not supported */
}
@Override
public void doReset(Collection<String> commands) {
doResetAndHalt(commands);
doContinue(commands);
}
@Override
public void doResetAndHalt(Collection<String> commands) {
addCmd(commands, "monitor reset"); //$NON-NLS-1$
}
}