tcl: Adapt config files to new ftdi command syntax
The patch was created automatically using the following script: %<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<--- (cat << EOF ftdi_device_desc ftdi device_desc ftdi_serial ftdi serial ftdi_channel ftdi channel ftdi_layout_init ftdi layout_init ftdi_layout_signal ftdi layout_signal ftdi_set_signal ftdi set_signal ftdi_get_signal ftdi get_signal ftdi_vid_pid ftdi vid_pid ftdi_tdo_sample_edge ftdi tdo_sample_edge EOF ) | while read a b; do sed -i "s/$a/$b/g" $(find tcl -type f -name "*.cfg" ) done %<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<--- Change-Id: Iff781f37bb5511b7e15cbe6dcdf6d28e89fb174f Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/6333 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
1d4b252bb1
commit
7c38f24529
@@ -14,18 +14,18 @@
|
||||
# http://www.ftdichip.com/Support/Documents/AppNotes/AN_129_FTDI_Hi_Speed_USB_To_JTAG_Example.pdf
|
||||
|
||||
adapter driver ftdi
|
||||
#ftdi_device_desc "C232HM-DDHSL-0"
|
||||
#ftdi_device_desc "C232HM-EDHSL-0"
|
||||
#ftdi device_desc "C232HM-DDHSL-0"
|
||||
#ftdi device_desc "C232HM-EDHSL-0"
|
||||
|
||||
# Common PID for FT232H
|
||||
ftdi_vid_pid 0x0403 0x6014
|
||||
ftdi vid_pid 0x0403 0x6014
|
||||
|
||||
# Layout
|
||||
# High data byte 0x40 configures red LED on ACBUS6 initially high (unlit, since active-low)
|
||||
# Low data byte 0x08 configures TMS on ACBUS3 initially high (asserted); TCK, TDI low
|
||||
# High direction byte 0x40 configures red LED on ACBUS6 as high (output)
|
||||
# Low direction byte 0x0b configures TDO on ACBUS2 as low (input)
|
||||
ftdi_layout_init 0x4008 0x400b
|
||||
ftdi layout_init 0x4008 0x400b
|
||||
|
||||
# ---A*BUS-------CCCCCCCC|DDDDDDDD
|
||||
# --------\______76543210|76543210
|
||||
@@ -35,12 +35,12 @@ ftdi_layout_init 0x4008 0x400b
|
||||
#GPIOL2 0x0040 = 00000000|01000000 = ADBUS6
|
||||
#GPIOL3 0x0080 = 00000000|10000000 = ADBUS7
|
||||
# -ndata treats the LED as active-low for expected behavior (toggle when transferring)
|
||||
ftdi_layout_signal LED -ndata 0x4000
|
||||
ftdi layout_signal LED -ndata 0x4000
|
||||
# Available for aliasing as desired
|
||||
ftdi_layout_signal GPIOL0 -data 0x0010 -oe 0x0010
|
||||
ftdi_layout_signal GPIOL1 -data 0x0020 -oe 0x0020
|
||||
ftdi_layout_signal GPIOL2 -data 0x0040 -oe 0x0040
|
||||
ftdi_layout_signal GPIOL3 -data 0x0080 -oe 0x0080
|
||||
ftdi layout_signal GPIOL0 -data 0x0010 -oe 0x0010
|
||||
ftdi layout_signal GPIOL1 -data 0x0020 -oe 0x0020
|
||||
ftdi layout_signal GPIOL2 -data 0x0040 -oe 0x0040
|
||||
ftdi layout_signal GPIOL3 -data 0x0080 -oe 0x0080
|
||||
|
||||
# C232HM FT232H JTAG/Other
|
||||
# Num Color Name Func
|
||||
|
||||
Reference in New Issue
Block a user