Skip to content
Commit 4fc96705 authored by Axel Lin's avatar Axel Lin Committed by Macpaul Lin
Browse files

nds32: ag101/ag102: Fix setting lastdec and now values



The timer3 counter unit for lastdesc and now values are inconsistent in current
code. The unit of "readl(&tmr->timer3_counter) / (CONFIG_SYS_CLK_FREQ / 2)" is
second. However, CONFIG_SYS_HZ is defined as 1000 in board config file.
This means the accuracy of "lastdec" and "now" should be in millisecond,
thus fix the equation to set lastdec and now variables accordingly.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
parent e3c58b02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment