openharmony_kernel_liteos_m/kernel/arch
zhushengle f23481e041 fixed 3e569ba from https://gitee.com/zhushengle/kernel_liteos_m/pulls/385
fix: 修复cortex-m系列系统提供的timer在低频下时间不准的问题

触发场景:
    cpu主频比较高,timer频率较低时,当SysTick->VAL == 0时,
触发tick中断,在中断中系统将当前周期累加到基准时间里,在中
断结束更新tick响应时间时,会更新系统基准时间(为了让时间更
加准确)此时由于SysTick->VAL任然等于0,接口HalGetTickCycle
返回的仍然是当前周期,导致该周期被累加了两次。

解决方案:
    接口HalGetTickCycle在SysTick->VAL == 0时返回0.
因为SysTick->VAL == 0时,必然会触发tick中断,周期
的累加是由中断处理的,此时只需要返回0即可。

Close #I4HBGR
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: Iba6e8799b0ae851fc94aa23867b2360a4245994d
2021-11-10 01:21:57 +00:00
..
arm fixed 3e569ba from https://gitee.com/zhushengle/kernel_liteos_m/pulls/385 2021-11-10 01:21:57 +00:00
include fix: 修复中断操作接口头文件位置变更,导致的编译错误 2021-08-18 14:47:59 +08:00
risc-v fixed 9f185b5 from https://gitee.com/zhushengle/kernel_liteos_m/pulls/314 2021-09-18 06:15:45 +00:00