mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[ion] Add TODO on implementations of usleep msleep
This commit is contained in:
committed by
EmilieNumworks
parent
7993f7e906
commit
a8dc17a6cf
@@ -19,6 +19,10 @@ extern "C" {
|
||||
|
||||
// Public Ion methods
|
||||
|
||||
/* TODO: The delay methods 'msleep' and 'usleep' are currently dependent on the
|
||||
* optimizations chosen by the compiler. To prevent that and to gain in
|
||||
* precision, we could use the controller cycle counter (Systick). */
|
||||
|
||||
void Ion::msleep(long ms) {
|
||||
for (volatile long i=0; i<8852*ms; i++) {
|
||||
__asm volatile("nop");
|
||||
|
||||
Reference in New Issue
Block a user