]> sigrok.org Git - libsigrok.git/commit
asix-sigma: eliminate magic numbers in sample memory access
authorGerhard Sittig <redacted>
Sat, 9 May 2020 18:23:23 +0000 (20:23 +0200)
committerGerhard Sittig <redacted>
Fri, 29 May 2020 05:50:18 +0000 (07:50 +0200)
commit2c33b092553c4116151aeb59f129f2f0a598741e
tree92c61aae5c130e5dd32fe6bff56ad0ff9c555f87
parent7c41c420aa51b07e7381df5132da27228e9a56bd
asix-sigma: eliminate magic numbers in sample memory access

Add more symbolic identifiers, and rename some of the existing names for
access to SIGMA sample memory. This eliminates magic numbers and reduces
redundancy and potential for errors during maintenance.

This commit also concentrates DRAM layout related declarations in the
header file in a single location, which previously were scattered, and
separated registers from their respective bit fields.

Extend comments on the difference of events versus sample data.
src/hardware/asix-sigma/protocol.c
src/hardware/asix-sigma/protocol.h