Timer#
Functions#
Called for every millisecond and increments the timer counter.
Return the timer counter value.
Initialize the timer instance with the expiry time.
Check whether the timer instance is expired or not.
Get the remaining time for timer expiry.
Function Documentation#
rsi_timer_expiry_interrupt_handler#
void rsi_timer_expiry_interrupt_handler (void )
Called for every millisecond and increments the timer counter.
[in] |
Returns
void
37
of file driver/rsi_timer.c
rsi_timer_read_counter#
uint32_t rsi_timer_read_counter (void )
Return the timer counter value.
[in] |
Returns
Timer counter value in milliseconds
58
of file driver/rsi_timer.c
rsi_init_timer#
void rsi_init_timer (rsi_timer_instance_t * rsi_timer, uint32_t duration)
Initialize the timer instance with the expiry time.
[in] | rsi_timer | - timer instance |
[in] | duration | - duration in milli seconds |
Returns
void
73
of file driver/rsi_timer.c
rsi_timer_expired#
int32_t rsi_timer_expired (rsi_timer_instance_t * timer)
Check whether the timer instance is expired or not.
[in] | timer | - timer instance |
Returns
1 - if timer is expired 0 - if timer is not expired
89
of file driver/rsi_timer.c
rsi_timer_left#
uint32_t rsi_timer_left (rsi_timer_instance_t * timer)
Get the remaining time for timer expiry.
[in] | timer | - timer instance |
Returns
Positive value - time left to expire 0 - if timer is expired
107
of file driver/rsi_timer.c