Age | Commit message (Collapse) | Author |
|
|
|
|
|
Resetting counters depending on the LCD controller's R/S signal yields
numbers that correspond to byte sequences that either "control" hardware
(register access) or carry "data" (display text).
Provide a test case for the rising edge of RESET. Existing cases already
covered the falling edge of RESET which is the default.
|
|
|
|
|
|
|
|
The parallel decoder got adjusted to emit annotations for "items" and
"words" in a unified format (consistent width, leading zeroes). Adjust
the test expectation to match the PD implementation.
|
|
The USB power delivery decoder got adjusted to construct complex
annotations that consisted of several text fragments in a reproducible
order. Adjust the test expectation to match the PD implementation.
|
|
|
|
|
|
|
|
|
|
This fixes (parts of) bug #1019.
|
|
|
|
The CAN decoder got adjusted to synchronize to the input stream's clock.
Catch up in the test expectation.
|
|
The start sample number of onewire network decoder annotations got fixed
in the decoder implementation (used to start one bit late). Catch up in
the test expectation.
|
|
The previous implementation used the period counter instead of the
period's actual start and end sample number. The implementation got
fixed, catch up in the test expectation.
|
|
|
|
|
|
Remove the "exception_samplerate" test for the SPI decoder. Lack of a
samplerate specification only breaks the emission of the throughput
annotations, but still allows decoding the clocked signal.
|
|
|
|
Adapt all tests that require it to use the old behaviour of assuming an
initial pin value of 0 (or whatever was previously hardcoded in the PD).
for now (this will likely see some changes later).
|
|
|
|
Option values are strings, not numbers.
This fixes:
$ ./decoder/pdtest -s jitter
Testcase: jitter/toim4243
Protocol decoder: jitter
Channel clk=3
Channel sig=2
Error: %d format: a number is required, not str
|
|
|
|
|
|
|
|
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
|
|
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
|
|
|
|
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
Help says -l should list tests. Make it do so.
You can still do "-l uart" to see only uart tests, but -l by itself now
does what you expect.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
|
|
|
|
|
|
|
|
|
|
|
|
Time slots and reset pulse/presence detect end timestamps were off by 1 us.
Additional warnings have been added for glitches.
Incomplete starting patterns are ignored.
|
|
|
|
|
|
|
|
|
|
|
|
Recent libsigrokdecode adjustment changed decoder output. The ID of a
protocol decoder instance need no longer match the decoder type's name
even for simple setups.
Lookup the selected decoder's instance ID during construction of the
decoder stack. Such that the selected decoder's data can get identified
in the output of the stack which is received by runtc(1).
Note that this implementation passes the decoder type's name to the
runtc(1) output file, so that it keeps matching the expected .output
files when pdtest(1) compares those two streams. This approach avoids
the necessity to adjust test.conf or .output files. It will no longer
be appropriate when more complex test configurations shall be supported
which involve multiple instances of the same decoder type or multiple
stacks of decoders.
|
|
When a conditional has one complex branch (multiple instructions), both
branches are supposed to have braces around them. Instead of putting
extra braces around single instructions, eliminate the "else" branch
since the "if" branch already ends in break or return respectively.
|
|
Pass NULL instead of 0 where a pointer is expected. Fixup whitespace.
|
|
Adjust the screen layout of usage() output: Align parameters to options
in identical ways, to separate them from descriptions for options which
don't take parameters. Add previously not listed options.
|
|
|
|
This is related to the libsigrokdecode change regarding bug #868.
|