Just encode the opcodes as hexadecimal values. This makes for better
readability when mapping the communication dump with the sigma to the
code.

Signed-off-by: Marek Vasut <[email protected]>
---
 hardware/asix-sigma/asix-sigma.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/hardware/asix-sigma/asix-sigma.h b/hardware/asix-sigma/asix-sigma.h
index 528e661..b8362e0 100644
--- a/hardware/asix-sigma/asix-sigma.h
+++ b/hardware/asix-sigma/asix-sigma.h
@@ -55,17 +55,17 @@ enum sigma_read_register {
        READ_TEST               = 15,
 };
 
-#define REG_ADDR_LOW           (0 << 4)
-#define REG_ADDR_HIGH          (1 << 4)
-#define REG_DATA_LOW           (2 << 4)
-#define REG_DATA_HIGH_WRITE    (3 << 4)
-#define REG_READ_ADDR          (4 << 4)
-#define REG_DRAM_WAIT_ACK      (5 << 4)
+#define REG_ADDR_LOW           (0x0 << 4)
+#define REG_ADDR_HIGH          (0x1 << 4)
+#define REG_DATA_LOW           (0x2 << 4)
+#define REG_DATA_HIGH_WRITE    (0x3 << 4)
+#define REG_READ_ADDR          (0x4 << 4)
+#define REG_DRAM_WAIT_ACK      (0x5 << 4)
 
 /* Bit (1 << 4) can be low or high (double buffer / cache) */
-#define REG_DRAM_BLOCK         (6 << 4)
-#define REG_DRAM_BLOCK_BEGIN   (8 << 4)
-#define REG_DRAM_BLOCK_DATA    (10 << 4)
+#define REG_DRAM_BLOCK         (0x6 << 4)
+#define REG_DRAM_BLOCK_BEGIN   (0x8 << 4)
+#define REG_DRAM_BLOCK_DATA    (0xa << 4)
 
 #define LEDSEL0                        6
 #define LEDSEL1                        7
-- 
1.8.5.3


------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to