Commit df8bcb92 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

Additional waiting time before frame is read.

parent fc8454aa
......@@ -135,6 +135,10 @@ package body timestamp_options_feature is
------------------------------------------------------------------------
CAN_wait_frame_sent(ID_1, mem_bus(1));
ts_end := iout(2).stat_bus(STAT_TS_LOW + 31 downto STAT_TS_LOW);
wait until rising_edge(mem_bus(2).clk_sys);
wait until rising_edge(mem_bus(2).clk_sys);
wait until rising_edge(mem_bus(2).clk_sys);
CAN_read_frame(CAN_frame, ID_2, mem_bus(2));
diff := to_integer(unsigned(ts_end)) -
to_integer(unsigned(CAN_frame.timestamp(31 downto 0)));
......
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