The interface needs to be defined first, otherwise
'openocd -f board/redbee-econotag.cfg' gives an error.
At the same time, clean things up by moving the interface
definitions into interface/
---

> In general the interface definition should be removed from the board
> file entirely.

How about this -- moving the interface parts into interface/.
The redbee boards are like the sheevaplug in that the JTAG is
built-in, so this pretty much matches that.  Intended usage is still
just
  openocd -f board/redbee-econotag.cfg

-jim

 tcl/board/redbee-econotag.cfg     |    8 +-------
 tcl/board/redbee-usb.cfg          |    8 +-------
 tcl/interface/redbee-econotag.cfg |    6 ++++++
 tcl/interface/redbee-usb.cfg      |    6 ++++++
 4 files changed, 14 insertions(+), 14 deletions(-)
 create mode 100644 tcl/interface/redbee-econotag.cfg
 create mode 100644 tcl/interface/redbee-usb.cfg

diff --git a/tcl/board/redbee-econotag.cfg b/tcl/board/redbee-econotag.cfg
index 7a02ce0..af5b520 100644
--- a/tcl/board/redbee-econotag.cfg
+++ b/tcl/board/redbee-econotag.cfg
@@ -1,8 +1,2 @@
+source [find interface/redbee-econotag.cfg]
 source [find target/mc13224v.cfg]
-
-# The redbee-econotag has an onboard ft2232h with channel A wired
-# to the JTAG pins on the mc13224v
-# channel B is wired to UART1
-interface ft2232
-ft2232_layout redbee-econotag
-ft2232_vid_pid 0x0403 0x6010
diff --git a/tcl/board/redbee-usb.cfg b/tcl/board/redbee-usb.cfg
index 3aa68c1..dc2af07 100644
--- a/tcl/board/redbee-usb.cfg
+++ b/tcl/board/redbee-usb.cfg
@@ -1,8 +1,2 @@
+source [find interface/redbee-usb.cfg]
 source [find target/mc13224v.cfg]
-
-# The redbee-econotag has an onboard ft2232h with
-# channel B wired to the JTAG pins on the mc13224v
-# channel A is wired to UART1 on the mc13224v
-interface ft2232
-ft2232_layout redbee-usb
-ft2232_vid_pid 0x0403 0x6010
diff --git a/tcl/interface/redbee-econotag.cfg 
b/tcl/interface/redbee-econotag.cfg
new file mode 100644
index 0000000..2dcd027
--- /dev/null
+++ b/tcl/interface/redbee-econotag.cfg
@@ -0,0 +1,6 @@
+# The redbee-econotag has an onboard ft2232h with
+# ft2232h channel A wired to mc13224v JTAG
+# ft2232h channel B wired to mc13224v UART1 
+interface ft2232
+ft2232_layout redbee-econotag
+ft2232_vid_pid 0x0403 0x6010
diff --git a/tcl/interface/redbee-usb.cfg b/tcl/interface/redbee-usb.cfg
new file mode 100644
index 0000000..8fa7b0b
--- /dev/null
+++ b/tcl/interface/redbee-usb.cfg
@@ -0,0 +1,6 @@
+# The redbee-usb has an onboard ft2232h with
+# ft2232h channel B wired to mc13224v JTAG
+# ft2232h channel A wired to mc13224v UART1 
+interface ft2232
+ft2232_layout redbee-usb
+ft2232_vid_pid 0x0403 0x6010
-- 
1.7.4.1

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to