]> sigrok.org Git - libsigrok.git/commit
asix-sigma: Rework decode_chunk_ts()
authorMarek Vasut <redacted>
Sun, 20 Apr 2014 01:10:05 +0000 (03:10 +0200)
committerBert Vermeulen <redacted>
Wed, 30 Apr 2014 16:45:52 +0000 (09:45 -0700)
commit5fc01191eb13c21e4b0ae1ee117f723d48b2d10d
tree1023340e11996fdbc8996b5777548933ff9ab001
parent46641facd4ad8de4a93910d7089c7b289b412443
asix-sigma: Rework decode_chunk_ts()

This function could have never returned correct data. Rework the decoding
logic according to the Sigma documentation. This patch also fixes the
handling of partial DRAM lines and partial DRAM clusters.

While at it, do not allocate megabytes of data on stack, just allocate 2KiB
which is plenty for all the work this function needs to do.

Signed-off-by: Marek Vasut <redacted>
hardware/asix-sigma/asix-sigma.c
hardware/asix-sigma/asix-sigma.h