firmware/ice40-riscv/e1-tracer: Fix e1_tick_read()

This was broken when moving the design to non-hacked multi channel
E1.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: I5e7ce22935609bc64333e2d5c310eb7493555a93
This commit is contained in:
Sylvain Munaut 2020-10-29 13:24:02 +01:00
parent c704c0704e
commit 5e0217ea72
1 changed files with 2 additions and 3 deletions

View File

@ -31,9 +31,8 @@ static volatile struct misc * const misc_regs = (void*)(MISC_BASE);
void
e1_tick_read(uint16_t *ticks)
{
uint32_t v = misc_regs->e1_tick;
ticks[0] = (v ) & 0xffff;
ticks[1] = (v >> 16) & 0xffff;
ticks[0] = misc_regs->e1_tick[0].rx;
ticks[1] = misc_regs->e1_tick[1].rx;
}