This is the patch pack that should add interface_signal() and bitbang() functionality (binary backend + tcl frontend) to the interface API + example implementation for FT2232 interfaces (layout independent).
Patches can be applied on top of the current GIT HEAD. Please verify
their functionality as this is result of stripped patching from my
work-in-progress-fork.
The example usage is following:
%telnet localhost 4444
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> interface_signal add RnW 0x1000
> interface_signal add LED 0x8000
> interface_signal add srst 0x0a00
> interface_signal list
Interface Signal Name | Mask | Value
----------------------------------------------------------
RnW | 0x00001000 | 0x00001000
LED | 0x00008000 | 0x00008000
srst | 0x00000A00 | 0x00000A00
> bitbang led=hi
LED=0x00008000
> bitbang led=lo
LED=0x00000000
> bitbang led=hi
LED=0x00008000
> interface_signal list
Interface Signal Name | Mask | Value
----------------------------------------------------------
RnW | 0x00001000 | 0x00001000
LED | 0x00008000 | 0x00008000
srst | 0x00000A00 | 0x00000A00
> bitbang led=lo
LED=0x00000000
> interface_signal list
Interface Signal Name | Mask | Value
----------------------------------------------------------
RnW | 0x00001000 | 0x00001000
LED | 0x00008000 | 0x00000000
srst | 0x00000A00 | 0x00000A00
> interface_signal
Bad syntax!
interface_signal (add|del|list) signal_name [mask]
in procedure 'interface_signal'
Best regards,
Tomek
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
0001-INTERFACE-Adding-new-place-for-generic-interface-dri.patch
Description: Binary data
0002-JTAG_INTERFACE-Extended-jtag_interface-API-with-addi.patch
Description: Binary data
0003-INTERFACE-Integrating-generic-interface-from-src-int.patch
Description: Binary data
0005-ADAPTER-Implemented-TCL-support-for-interface-signal.patch
Description: Binary data
0006-OPENOCD-Register-bitbang-TCL-command.patch
Description: Binary data
0008-FT2232_DRIVER-Added-bitbang-implementation-backend-t.patch
Description: Binary data
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
