From 43f417db555a948771f8fe5f32c6051ba3cff1d5 Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Fri, 5 Apr 2024 01:08:18 +1030 Subject: [PATCH] add extra debug register to confirm mapping #798 --- src/vhdl/keypad_i2c.vhdl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vhdl/keypad_i2c.vhdl b/src/vhdl/keypad_i2c.vhdl index 6bbd7fe72..55dfc0542 100644 --- a/src/vhdl/keypad_i2c.vhdl +++ b/src/vhdl/keypad_i2c.vhdl @@ -159,6 +159,8 @@ begin -- Show error status from I2C fastio_rdata(7 downto 6) <= "10"; fastio_rdata(5 downto 0) <= debug_status; + elsif fastio_addr(7 downto 0) = "11111100" then + fastio_rdata <= x"42"; else -- Else for debug show busy count fastio_rdata <= to_unsigned(busy_count,8);