openharmony_kernel_liteos_m/kernel
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
..
arch fixed 3e569ba from https://gitee.com/zhushengle/kernel_liteos_m/pulls/385 2021-11-10 01:21:57 +00:00
include !333 fix: OS_TASK_STACK_PROTECT_SIZE undeclared error 2021-09-29 03:49:03 +00:00
src fixed 49c93b3 from https://gitee.com/zhushengle/kernel_liteos_m/pulls/351 2021-10-15 07:42:15 +00:00
BUILD.gn fix: 内核模块编译增加-Werror编译选项,且清除内核编译告警 2021-09-06 16:16:43 +08:00