tcl: move SPDX tag as first line
[fw/openocd] / tcl / interface / ftdi / flyswatter2.cfg
index 7d57e436b9cf1045473891c242cb06c897ff63be..0b4a8ef9f243ac7ca08c71fe73ef78a33ef74287 100644 (file)
@@ -1,18 +1,14 @@
 #
-# TinCanTools Flyswatter 2
+# TinCanTools Flyswatter2
 #
-# http://www.tincantools.com/product.php?productid=16134
+# https://www.tincantools.com/product/flyswatter2/
 #
 
-echo "WARNING!"
-echo "This file was not tested with real interface, it is based on code in ft2232.c."
-echo "Please report your experience with this file to openocd-devel mailing list,"
-echo "so it could be marked as working or fixed."
+adapter driver ftdi
+ftdi device_desc "Flyswatter2"
+ftdi vid_pid 0x0403 0x6010
 
-interface ftdi
-ftdi_device_desc "Flyswatter2"
-ftdi_vid_pid 0x0403 0x6010
-
-ftdi_layout_init 0x0818 0x017b
-ftdi_layout_signal nTRST -data 0x0010
-ftdi_layout_signal nSRST -noe 0x0020
+ftdi layout_init 0x0538 0x057b
+ftdi layout_signal LED -ndata 0x0400
+ftdi layout_signal nTRST -data 0x0010
+ftdi layout_signal nSRST -data 0x0020 -noe 0x0100