Timer management for the lwIP Raw HTTP basic example.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
uint32_t | sys_get_ms (void) |
Return the number of timer ticks (ms). More... | |
void | sys_init_timing (void) |
Initialize the timer counter (TC0). More... | |
uint32_t sys_get_ms | ( | void | ) |
Return the number of timer ticks (ms).
References gs_ul_clk_tick.
Referenced by sys_now(), and timers_update().
void sys_init_timing | ( | void | ) |
Initialize the timer counter (TC0).
References gs_ul_clk_tick, pmc_enable_periph_clk(), sysclk_get_main_hz(), tc_enable_interrupt(), tc_find_mck_divisor(), tc_init(), tc_start(), and tc_write_rc().
Referenced by init_ethernet().