mirror of
https://github.com/Maschell/dynamic_libs.git
synced 2024-11-15 01:15:15 +01:00
[Caution] Renamed the sleep functions to resolve conflicts with the unistd.h
This commit is contained in:
parent
d7b44109ac
commit
a2f4abdbeb
@ -37,8 +37,9 @@ extern "C" {
|
||||
#define MILLISECS_TO_TICKS(msec) (SECS_TO_TICKS(msec) / 1000)
|
||||
#define MICROSECS_TO_TICKS(usec) (SECS_TO_TICKS(usec) / 1000000)
|
||||
|
||||
#define usleep(usecs) OSSleepTicks(MICROSECS_TO_TICKS(usecs))
|
||||
#define sleep(secs) OSSleepTicks(SECS_TO_TICKS(secs))
|
||||
//To avoid conflicts with the unistd.h
|
||||
#define os_usleep(usecs) OSSleepTicks(MICROSECS_TO_TICKS(usecs))
|
||||
#define os_sleep(secs) OSSleepTicks(SECS_TO_TICKS(secs))
|
||||
|
||||
#define FLUSH_DATA_BLOCK(addr) asm volatile("dcbf 0, %0; sync" : : "r"(((addr) & ~31)))
|
||||
#define INVAL_DATA_BLOCK(addr) asm volatile("dcbi 0, %0; sync" : : "r"(((addr) & ~31)))
|
||||
|
Loading…
Reference in New Issue
Block a user