summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-11 12:09:35 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-11 12:09:35 +0000
commit1360ae4487a6ea47a02951674c74749419406a76 (patch)
tree33e38f8a65d7827d7fd9d1af9f7f9f9578b184ca /src
parent6707cf5b9a373d6c5b7da9596f815b8e32213f7a (diff)
downloadopenocd+libswd-1360ae4487a6ea47a02951674c74749419406a76.tar.gz
openocd+libswd-1360ae4487a6ea47a02951674c74749419406a76.tar.bz2
openocd+libswd-1360ae4487a6ea47a02951674c74749419406a76.tar.xz
openocd+libswd-1360ae4487a6ea47a02951674c74749419406a76.zip
sense srst
git-svn-id: svn://svn.berlios.de/openocd/trunk@1154 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/jtag/zy1000.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/jtag/zy1000.c b/src/jtag/zy1000.c
index b5ed0aa2..4d984f3a 100644
--- a/src/jtag/zy1000.c
+++ b/src/jtag/zy1000.c
@@ -102,9 +102,15 @@ static bool readSRST()
return srstAsserted;
}
+static int zy1000_srst_asserted(int *srst_asserted)
+{
+ *srst_asserted=readSRST();
+ return ERROR_OK;
+}
+
static int zy1000_power_dropout(int *dropout)
{
- *dropout=readPowerDropout(); /* by default we can't detect power dropout */
+ *dropout=readPowerDropout();
return ERROR_OK;
}
@@ -120,6 +126,7 @@ jtag_interface_t zy1000_interface =
.khz = zy1000_khz,
.speed_div = zy1000_speed_div,
.power_dropout = zy1000_power_dropout,
+ .srst_asserted = zy1000_srst_asserted,
};
bitbang_interface_t zy1000_bitbang =