diff options
author | Aleksey Shargalin <myokaski@gmail.com> | 2017-10-31 16:56:01 +0300 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2018-01-13 06:35:55 +0000 |
commit | b34e013965777071aa88e1a1d7f4571dc267929e (patch) | |
tree | c227d87c004df81f342125149682e6408b635817 /contrib | |
parent | 133e01d2af2a27d4f04c19285a3d561c5cfc92d6 (diff) | |
download | riscv-openocd-b34e013965777071aa88e1a1d7f4571dc267929e.zip riscv-openocd-b34e013965777071aa88e1a1d7f4571dc267929e.tar.gz riscv-openocd-b34e013965777071aa88e1a1d7f4571dc267929e.tar.bz2 |
remote_bitbang_sysfsgpio: fix reset handling
When both SRST and TRST asserted, 'u' is sent to remote bitbang.
Fix for correct handling of such a case
Change-Id: I2a93ff71f5bbae658e6c0c3649a9fbcca2c5a14b
Signed-off-by: Aleksey Shargalin <myokaski@gmail.com>
Reviewed-on: http://openocd.zylin.com/4283
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/remote_bitbang/remote_bitbang_sysfsgpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/remote_bitbang/remote_bitbang_sysfsgpio.c b/contrib/remote_bitbang/remote_bitbang_sysfsgpio.c index e59a1bd..6641307 100644 --- a/contrib/remote_bitbang/remote_bitbang_sysfsgpio.c +++ b/contrib/remote_bitbang/remote_bitbang_sysfsgpio.c @@ -302,7 +302,7 @@ static void process_remote_protocol(void) break; else if (c == 'b' || c == 'B') /* Blink */ continue; - else if (c >= 'r' && c <= 'r' + 2) { /* Reset */ + else if (c >= 'r' && c <= 'r' + 3) { /* Reset */ char d = c - 'r'; sysfsgpio_reset(!!(d & 2), (d & 1)); |