Skip to content
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

增加微秒级delay API #110

Closed
wanglingsong opened this issue Feb 7, 2018 · 7 comments
Closed

增加微秒级delay API #110

wanglingsong opened this issue Feb 7, 2018 · 7 comments
Labels

Comments

@wanglingsong
Copy link
Contributor

目前aos里只提供aos_msleep这样一个毫秒级的delay/sleep API。无法进行微秒级的时间控制,例如解析DHT11的数据编码。所以希望能提供一个微秒级的delay/sleep API,比如:aos_usleep

@wanglingsong
Copy link
Contributor Author

请问有进展吗?

@librae8226
Copy link
Collaborator

目前看起来在板级根据实际硬件clock配置通过计算tick来阻塞方式实现比较可行,如果有更好办法请comment

@wanglingsong
Copy link
Contributor Author

没有意见。

@wanglingsong
Copy link
Contributor Author

请问这个feature计划在哪个milestone做? @librae8226

@librae8226
Copy link
Collaborator

软件方式的暂无计划。如果需要可以根据实际硬件平台使用硬件定时器
参考 ./include/hal/soc/timer.h 接口

@wanglingsong
Copy link
Contributor Author

我比较好奇的是close了这个issue之后,你们怎么跟踪?还是你们已经决定不考虑引入这个feature?

@librae8226
Copy link
Collaborator

librae8226 commented May 30, 2018

如果还有问题的话可以 reopen 的哈。
如上所述,目前除了从厂商对接的hal api使用硬件timer支持该feature以外,暂无加入os统一api的计划。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants