Closed davidgao closed 9 years ago
Good point.
However I think sleep()
functions should probably be renamed to delay()
since sleep()
is more-or-less a system call, and delay()
hints for some kind of busy-wait which fits our requirements.
Date: Wed, 2 Sep 2015 09:42:51 -0700 From: notifications@github.com To: AIMv6@noreply.github.com Subject: [AIMv6] please move rtc driver into clock directory (#9)
Title means almost everything,
I added a sleep.h to include/, they should be provided by some driver, but the signatures should be just the same.
― Reply to this email directly or view it on GitHub.
maybe spin_sleep()
can indicate that better.
spin_sleep
, delay
and busy_wait
are all good candidates, feel free to choose one or invent your own
发自 Windows 邮件
发件人: David Gao 发送时间: 2015年9月4日, 星期五 18:52 收件人: BarclayII/AIMv6 抄送: Gan Quan
maybe spin_sleep() can indicate that better.
— Reply to this email directly or view it on GitHub.
it'll be spin_sleep
then. ARM's other SDKs say sleep
so choosing another name might be misleading.
Title means almost everything,
I added a
sleep.h
toinclude/
, they should be provided by some driver, but the signatures should be just the same.