DMCP interface 03.15_021
|
Timing related functions. More...
Functions | |
void | sys_timer_disable (int timer_ix) |
Disables system timer. | |
void | sys_timer_start (int timer_ix, uint32_t ms_value) |
Starts system timer (non-periodic pooling timer) | |
int | sys_timer_active (int timer_ix) |
Check timer running status. | |
int | sys_timer_timeout (int timer_ix) |
Check for timer timeout. | |
void | sys_delay (uint32_t ms_delay) |
Delays program by specified number of milliseconds. | |
uint32_t | sys_tick_count () |
Get current tick count. | |
uint32_t | sys_current_ms () |
Get current millisecond. | |
Timing related functions.
uint32_t sys_current_ms | ( | ) |
Get current millisecond.
uint32_t sys_tick_count | ( | ) |
Get current tick count.
Note that system is usually built that one tick corresponds to one millisecond. Thus, sys_current_ms() returns the same value as this function.
int sys_timer_active | ( | int | timer_ix | ) |
Check timer running status.
timer_ix | Timer index |
void sys_timer_disable | ( | int | timer_ix | ) |
Disables system timer.
timer_ix | Timer index |
void sys_timer_start | ( | int | timer_ix, |
uint32_t | ms_value ) |
Starts system timer (non-periodic pooling timer)
timer_ix | Timer index |
ms_value | Timeout value (milliseconds) |
int sys_timer_timeout | ( | int | timer_ix | ) |
Check for timer timeout.