#include "pic_tick.h"

Go to the source code of this file.
Functions | |
| void | handle_tick () |
| Call this routine to increment tick count. | |
| uns16 | tick_calc_diff (uns16 a, uns16 b) |
| Calculate the tick time difference between two values. | |
| uns16 | tick_get_count () |
| Return current tick count. | |
| void handle_tick | ( | ) |
Typically called during the interrupt routine of a timer to increment the tick count. Note this routine assumes that interupts are off - which is always the case in an interrupt sub routine.
Definition at line 40 of file pic_tick.c.
References tick.
| uns16 tick_calc_diff | ( | uns16 | a, | |
| uns16 | b | |||
| ) |
Calculates how many ticks have elapsed between two tick values. Covers cases where the tick count wraps beyond its 16 bit value.
Definition at line 32 of file pic_tick.c.
Referenced by pkt_process_tx_queue().

| uns16 tick_get_count | ( | ) |
Returns the current tick count. Thread and interrupt safe.
Definition at line 18 of file pic_tick.c.
References kill_interrupts, tick, and uns16.
Referenced by pkt_process_tx_queue().

1.5.5