Definition in file timers.h.
Go to the source code of this file.
Defines | |
#define | NUMTIMERS 55 |
Number of timers available in the system. | |
#define | TIMERTIC 100 |
Frequency of timer interrupt. | |
Functions | |
UINT8 | get_timer (void) |
Obtain a timer from timer pool. | |
void | free_timer (UINT8) |
Release timer back to free timer pool. | |
void | init_timer (UINT8, UINT32) |
Initialize timer to a given time-out value. | |
void | timer_pool_init (void) |
Initialize timer pool. | |
UINT32 | check_timer (UINT8) |
Return the value of a given timer. | |
void | decrement_timers (void) |
Decrement all timers' values by one. |
|
This value should be changed to reflect the frequency in which timers are decremented. Standard value for this is 100. Definition at line 86 of file timers.h. Referenced by arp_init(), arp_manage(), bootpc_run(), dhcpc_init(), dhcpc_run(), dns_retransmit(), get_host_by_name(), tcp_getsocket(), tcp_newstate(), and tcp_poll(). |
|
Definition at line 131 of file timers.c. References FALSE, NUMTIMERS, RESET_SYSTEM, timer_pool, and TRUE. Referenced by arp_init(), bootpc_init(), dhcpc_init(), dns_init(), pop3c_init(), smtpc_init(), tcp_init(), and tftps_init(). |
|
Definition at line 169 of file timers.c. References NUMTIMERS, timer_pool, and TRUE. |
|
TIMERTIC defines how quickly the timers' values are decremented so is it to initialize timers to correct timeouts. Definition at line 194 of file timers.c. References NUMTIMERS, OS_EnterCritical, OS_ExitCritical, timer_pool, and TRUE. Referenced by arp_init(), arp_manage(), bootpc_run(), dhcpc_init(), dhcpc_run(), dns_retransmit(), get_host_by_name(), tcp_init(), tcp_newstate(), and tcp_poll(). |
|
Definition at line 233 of file timers.c. References timer_pool. Referenced by arp_manage(), bootpc_run(), dhcpc_run(), dns_run(), and tcp_poll(). |
|
Definition at line 248 of file timers.c. References FALSE, NUMTIMERS, and timer_pool. |