Commit 1e54b7e3 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

Updated RTR_PREF_IND to RTRP_IND.

parent 05d4aab3
......@@ -478,7 +478,7 @@ architecture rtl of canfd_registers is
mode_reg(STM_IND) <= STM_RSTVAL; -- Self test mode
mode_reg(AFM_IND) <= AFM_RSTVAL; -- Acceptance filters mode
mode_reg(FDE_IND) <= FDE_RSTVAL; -- Flexible datarate enable
mode_reg(RTR_PREF_IND) <= RTR_PREF_RSTVAL; -- RTR Preffered behaviour
mode_reg(RTRP_IND) <= RTRP_RSTVAL; -- RTR Preffered behaviour
-- Retransmitt limit enable
retr_lim_ena <= RTRLE_RSTVAL;
......@@ -900,7 +900,7 @@ begin
-- MODE, COMMAND and SETTINGS registers
--------------------------------------------------------
when MODE_ADR =>
-- RTR_PREF,FDE,AFM,STM,LOM Bits
-- RTRP,FDE,AFM,STM,LOM Bits
write_be_vect(mode_reg, 1, 5, data_in, 1, 5, sbe);
-- Tripple sampling
......@@ -1947,7 +1947,7 @@ begin
drv_bus(DRV_ABORT_TRAN_INDEX) <= abort_transmittion;
drv_bus(DRV_CAN_FD_ENA_INDEX) <= mode_reg(FDE_IND);
drv_bus(DRV_RTR_PREF_INDEX) <= mode_reg(RTR_PREF_IND);
drv_bus(DRV_RTR_PREF_INDEX) <= mode_reg(RTRP_IND);
-- Bus monitoring = listen only mode
drv_bus(DRV_BUS_MON_ENA_INDEX) <= mode_reg(LOM_IND);
......
......@@ -3790,7 +3790,7 @@ package body CANtestLib is
end if;
if (mode.rtr_pref) then
data(RTR_PREF_IND) := '1';
data(RTRP_IND) := '1';
end if;
if (mode.tripple_sampling) then
......@@ -3860,7 +3860,7 @@ package body CANtestLib is
mode.flexible_data_rate := true;
end if;
if (data(RTR_PREF_IND) = '1') then
if (data(RTRP_IND) = '1') then
mode.rtr_pref := true;
end if;
......
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