Home
last modified time | relevance | path

Searched refs:OS_TIMER_CLOCK (Results 1 – 1 of 1) sorted by relevance

/CafeSDK-2.12.13-1/system/include/cafe/os/
DOSTime.h49 #define OS_TIMER_CLOCK (OS_BUS_CLOCK/4) macro
51 #define OSTicksToCycles( ticks ) (((ticks) * ((OS_CORE_CLOCK * 2) / OS_TIMER_CLOCK)) / 2)
52 #define OSTicksToSeconds( ticks ) ((ticks) / OS_TIMER_CLOCK)
53 #define OSSecondsToTicks( sec ) ((sec) * OS_TIMER_CLOCK)
56 #define OSTicksToMilliseconds( ticks ) ((ticks) / (OS_TIMER_CLOCK / 1000))
57 #define OSTicksToMicroseconds( ticks ) (((ticks) * 8) / (OS_TIMER_CLOCK / 125000))
58 #define OSTicksToNanoseconds( ticks ) (((ticks) * 8000) / (OS_TIMER_CLOCK / 125000))
60 #define OSMillisecondsToTicks( msec ) ((msec) * (OS_TIMER_CLOCK / 1000))
61 #define OSMicrosecondsToTicks( usec ) (((usec) * (OS_TIMER_CLOCK / 125000)) / 8)
62 #define OSNanosecondsToTicks( nsec ) (((nsec) * (OS_TIMER_CLOCK / 125000)) / 8000)
[all …]