-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve timer accuracy and realize #6926
Conversation
cputime的初始化可以先放在bsp |
2 similar comments
cputime的初始化可以先放在bsp |
cputime的初始化可以先放在bsp |
对了,cputimer 的文档也需要写一份。提交到文档中心 |
cputime,cputimer?好具备迷惑性,或者cputime_timer? |
@mysterywolf 对名字这块有洁癖,有建议的吗? |
好 我晚上看一下 |
@zhkag 请稍微写一下PR的描述 |
我个人建议cputime_timer 直接缩写成cputimer即可,rt_cputimer_create 。这个与cputime之前没有太多的迷惑性,rt_cputime_timer有些啰嗦。 |
后续rt_hw_delay_us可否直接调用cputime框架 或者说 rt_hw_delay_us的内容可以整合作为cputime的驱动 |
tick 表示的是 定时器硬件计数器的值 时间相关的都是使用的 ns us ms 等变量表示的 |
rt_cputimer_create并没申请内存,不如叫init |
void rt_cputimer_create(rt_cputimer_t timer, 这个time 也改成tick统一点 |
* Remove RT_USING_CPUTIME in cputimer.c * Set set_next_timeout as static function.
拉取/合并请求描述:(PR description)
[
实现 cputime 可设置超时函数功能
依据 cputime 实现高精度定时器,以及延时功能
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0
代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up