|
libnds
|
Contains a system tick counter that can be used by other parts of libnds and other libraries and user code. More...
Functions | |
| uint64_t | systemCounterGetTicks (void) |
| This gets the current value of the system tick counter. | |
| static u32 | systemCounterMsecsToTicks (u32 ms) |
| Converts milliseconds to system counter ticks. | |
| void | systemCounterSetup (void) |
| Initializes the system tick counter using a timer. | |
| static u32 | systemCounterTicksToMsec (u32 ticks) |
| Converts system counter ticks to milliseconds. | |
| static u32 | systemCounterTicksToUsec (u32 ticks) |
| Converts system counter ticks to microseconds. | |
| static u32 | systemCounterUsecsToTicks (u32 us) |
| Converts microseconds to system counter ticks. | |
Contains a system tick counter that can be used by other parts of libnds and other libraries and user code.
| uint64_t systemCounterGetTicks | ( | void | ) |
This gets the current value of the system tick counter.
Converts milliseconds to system counter ticks.
| ms | Number of milliseconds. |
| void systemCounterSetup | ( | void | ) |
Initializes the system tick counter using a timer.
It uses the timer with index LIBNDS_TIMER_TICK_COUNTER.
Converts system counter ticks to milliseconds.
| ticks | Number of ticks. |
Converts system counter ticks to microseconds.
| ticks | Number of ticks. |