Merge pull request #2887 from jesven/master

修正qemu-vexpress-a9系统心跳不准的问题
This commit is contained in:
Bernard Xiong 2019-07-23 10:17:19 +08:00 committed by GitHub
commit c94cac2e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ int rt_hw_timer_init(void)
val |= (TIMER_CTRL_32BIT | TIMER_CTRL_PERIODIC | TIMER_CTRL_IE); val |= (TIMER_CTRL_32BIT | TIMER_CTRL_PERIODIC | TIMER_CTRL_IE);
TIMER_CTRL(TIMER_HW_BASE) = val; TIMER_CTRL(TIMER_HW_BASE) = val;
TIMER_LOAD(TIMER_HW_BASE) = 1000; TIMER_LOAD(TIMER_HW_BASE) = 1000000/RT_TICK_PER_SECOND;
/* enable timer */ /* enable timer */
TIMER_CTRL(TIMER_HW_BASE) |= TIMER_CTRL_ENABLE; TIMER_CTRL(TIMER_HW_BASE) |= TIMER_CTRL_ENABLE;