Commit 4744ff0a authored by Benoit Rat's avatar Benoit Rat Committed by Miguel Jimenez Lopez

dio: correct doc and comments for first channel (ch0) mode

The first channel is set with 0 so that we force it to be output mode
p/P & i/I mode will be only available for ch0, and D,d,1,0 will not be
working (they will be seen as p/P).
parent bd7c5e27
......@@ -840,9 +840,9 @@ begin
if rising_edge(clk_sys_i) then
-- Set default configuration for each channel at reset
if rst_n_i = '0' then
dio_iomode_reg(0*c_IOMODE_NB+3 downto 0*c_IOMODE_NB) <= "0000"; -- mode 0 0
dio_iomode_reg(0*c_IOMODE_NB+3 downto 0*c_IOMODE_NB) <= "0000"; -- mode 0 p
dio_iomode_reg(3*c_IOMODE_NB+3 downto 3*c_IOMODE_NB) <= "0100"; -- mode 3 i
dio_iomode_reg(4*c_IOMODE_NB+3 downto 4*c_IOMODE_NB) <= "0110"; -- mode 4 C
dio_iomode_reg(4*c_IOMODE_NB+3 downto 4*c_IOMODE_NB) <= "0110"; -- mode 4 c
else
-- Set up register iomode for each channel
for i in 0 to 4 loop
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment