Time tick functions.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
uint32_t | time_tick_calc_delay (uint32_t tick_start, uint32_t tick_end) |
Calculate the delay (ms) between two ticks. More... | |
uint32_t | time_tick_get (void) |
Get current time tick. More... | |
void | time_tick_init (void) |
Initialize for 1ms time tick. More... | |
uint32_t time_tick_calc_delay | ( | uint32_t | tick_start, |
uint32_t | tick_end | ||
) |
Calculate the delay (ms) between two ticks.
tick_start | Start tick number. |
tick_end | End tick number. |
Referenced by main_test_memory().
uint32_t time_tick_get | ( | void | ) |
void time_tick_init | ( | void | ) |
Initialize for 1ms time tick.
true
if initialization is OK, else false
. References Assert, g_ms_ticks, system_gclk_gen_get_hz(), and TICK_MS.
Referenced by main().