Microchip® Advanced Software Framework

ble_sdk/services/timer/sam0/timer_hw.c File Reference
#include "asf.h"
#include "timer_hw.h"
#include "conf_timer.h"

Data Structures

struct  hw_timer_struct
 

Functions

void hw_timer_init (void)
 
void hw_timer_register_callback (hw_timer_callback_t cb_ptr)
 
void hw_timer_start (uint32_t timer_val_s)
 
void hw_timer_start_ms (uint32_t timer_val_ms)
 
void hw_timer_stop (void)
 
void * platform_create_hw_timer (platform_hw_timer_callback_t bus_tc_cb_ptr)
 
void platform_delete_bus_timer (void *timer_handle)
 
void platform_start_bus_timer (void *timer_handle, uint32_t ms)
 
void platform_stop_bus_timer (void *timer_handle)
 
void platform_stop_stack_timers (void)
 
void tc_cc0_cb (struct tc_module *const module_inst)
 
void tc_cc1_cb (struct tc_module *const module_inst)
 

Variables

static struct hw_timer_struct hw_timers [STACK_HW_TIMERS]
 
platform_hw_timer_callback_t platform_cc1_cb
 
static uint32_t tc_count_ms
 
static uint32_t timeout_count_ms
 
hw_timer_callback_t timer_callback
 
uint32_t timer_count_per_ms
 

void hw_timer_register_callback ( hw_timer_callback_t  cb_ptr)

References timer_callback.

void hw_timer_start ( uint32_t  timer_val_s)

References hw_timer_start_ms().

void hw_timer_start_ms ( uint32_t  timer_val_ms)
void hw_timer_stop ( void  )
void platform_delete_bus_timer ( void *  timer_handle)
void platform_start_bus_timer ( void *  timer_handle,
uint32_t  ms 
)
void platform_stop_bus_timer ( void *  timer_handle)
void platform_stop_stack_timers ( void  )
void tc_cc0_cb ( struct tc_module *const  module_inst)
void tc_cc1_cb ( struct tc_module *const  module_inst)

struct hw_timer_struct hw_timers[STACK_HW_TIMERS]
static
Initial value:
= { { {0}, TMRID0, 0, 0},
{ {0}, TMRID1, 0, 0} }

Referenced by platform_create_hw_timer(), and platform_stop_stack_timers().

uint32_t tc_count_ms
static

Referenced by hw_timer_start_ms().

uint32_t timeout_count_ms
static

Referenced by hw_timer_start_ms().

hw_timer_callback_t timer_callback
uint32_t timer_count_per_ms