From: Stephan Thiele Date: Sun, 27 Oct 2019 23:42:21 +0000 (+0100) Subject: nes_gamepad: add a test-case X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6d4dbc2b54cc01c5460b292db22c7a5396039932;p=sigrok-test.git nes_gamepad: add a test-case --- diff --git a/decoder/test/nes_gamepad/nes_gamepad_generated_a.output b/decoder/test/nes_gamepad/nes_gamepad_generated_a.output new file mode 100644 index 0000000..e638786 --- /dev/null +++ b/decoder/test/nes_gamepad/nes_gamepad_generated_a.output @@ -0,0 +1 @@ +154-399 nes_gamepad: button: "A" diff --git a/decoder/test/nes_gamepad/test.conf b/decoder/test/nes_gamepad/test.conf new file mode 100644 index 0000000..fd3d050 --- /dev/null +++ b/decoder/test/nes_gamepad/test.conf @@ -0,0 +1,6 @@ +test nes_gamepad_generated_a + protocol-decoder spi channel cs=0 channel clk=2 channel miso=1 option cpol=1 + protocol-decoder nes_gamepad + stack spi nes_gamepad + input spi/nes_gamepad/nes_gamepad_generated/a.sr + output nes_gamepad annotation match nes_gamepad_generated_a.output