summaryrefslogtreecommitdiff
path: root/decoder/test/swd/test.conf
diff options
context:
space:
mode:
authorAngus Gratton <gus@projectgus.com>2014-10-12 13:12:29 +1100
committerUwe Hermann <uwe@hermann-uwe.de>2014-10-12 18:59:16 +0200
commite204a5d0898a8d1bd0f0a9c0670f8509cbe3de33 (patch)
tree904896622f90577ae0f1eefb9012a31e36e82bec /decoder/test/swd/test.conf
parentec3de18f47d7cfeeed0756c4f87621259063c435 (diff)
downloadsigrok-test-e204a5d0898a8d1bd0f0a9c0670f8509cbe3de33.tar.gz
sigrok-test-e204a5d0898a8d1bd0f0a9c0670f8509cbe3de33.zip
swd: Add test cases for various SWD captures
Diffstat (limited to 'decoder/test/swd/test.conf')
-rw-r--r--decoder/test/swd/test.conf33
1 files changed, 33 insertions, 0 deletions
diff --git a/decoder/test/swd/test.conf b/decoder/test/swd/test.conf
new file mode 100644
index 0000000..956fdc7
--- /dev/null
+++ b/decoder/test/swd/test.conf
@@ -0,0 +1,33 @@
+test ftdi_openocd_init_write_0xabbabeeb
+ protocol-decoder swd
+ input swd/ftdi_openocd/init_write_0xabbabeeb.sr
+ output swd annotation match ftdi_openocd/init_write_0xabbabeeb.output
+ output swd python match ftdi_openocd/init_write_0xabbabeeb.python
+
+test ftdi_openocd_init_noreply
+ protocol-decoder swd
+ input swd/ftdi_openocd/init_noreply.sr
+ output swd annotation match ftdi_openocd/init_noreply.output
+
+test ftdi_openocd_init_wait_fault
+ protocol-decoder swd
+ input swd/ftdi_openocd/init_wait_fault.sr
+ output swd annotation match ftdi_openocd/init_wait_fault.output
+
+test stlink_init_write_0xabbabeeb
+ protocol-decoder swd
+ input swd/stlink_openocd/init_write_0xabbabeeb.sr
+ output swd annotation match stlink_openocd/init_write_0xabbabeeb.output
+ output swd python match stlink_openocd/init_write_0xabbabeeb.python
+
+test stlink_wait_retry
+ protocol-decoder swd
+ input swd/stlink_openocd/wait_retry.sr
+ output swd annotation match stlink_openocd/wait_retry.output
+
+# With the strict_start option set, this capture doesn't include a LINERESET
+# so output is empty.
+test stlink_wait_retry
+ protocol-decoder swd option strict_start=yes
+ input swd/stlink_openocd/wait_retry.sr
+ output swd annotation match stlink_openocd/empty.output