Timer management for the lwIP Raw HTTP basic example.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "board.h"
#include "tc.h"
#include "timer_mgt.h"
#include "lwip/init.h"
#include "lwip/sys.h"
#include "pmc.h"
#include "sysclk.h"
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... | |
u32_t | sys_now (void) |
Returns the current time in milliseconds, may be the same as sys_jiffies or at least based on it. More... | |
void | TC0_Handler (void) |
TC0 Interrupt handler. More... | |
Variables | |
static volatile uint32_t | gs_ul_clk_tick |
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, and tc_init().
Referenced by init_ethernet().
u32_t sys_now | ( | void | ) |
Returns the current time in milliseconds, may be the same as sys_jiffies or at least based on it.
References sys_get_ms().
void TC0_Handler | ( | void | ) |
TC0 Interrupt handler.
References gs_ul_clk_tick.
|
static |
Referenced by sys_get_ms(), sys_init_timing(), and TC0_Handler().