#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_init | ( | void | ) |
Referenced by main().
void hw_timer_register_callback | ( | hw_timer_callback_t | cb_ptr | ) |
Referenced by main().
void hw_timer_start | ( | uint32_t | timer_val_s | ) |
Referenced by app_htpt_temp_send_cfm(), app_immediate_alert(), app_linkloss_alert(), app_notification_handler(), app_pathloss_alert(), at_app_send_lecb(), bas_encryption_status_changed_app_event(), bas_paired_app_event(), bat_custom_event(), battery_simulation_task(), ble_enc_status_changed_app_event(), ble_encryption_app_event(), ble_paired_app_event(), fmp_custom_event(), l2cap_data_recv(), main(), pxp_monitor_app_timer_event(), and pxp_reporter_custom_event().
void hw_timer_start_ms | ( | uint32_t | timer_val_ms | ) |
Referenced by hw_timer_start(), and main().
void hw_timer_stop | ( | void | ) |
Referenced by app_connected_state(), app_disconnected_cb(), app_disconnected_event_handler(), app_immediate_alert(), app_linkloss_alert(), app_notification_handler(), app_pair_done_event_handler(), app_pathloss_alert(), ble_disconnected_app_event(), fmp_custom_event(), htp_temperature_send(), l2cap_custom_event(), main(), and timer_callback_handler().
void* platform_create_hw_timer | ( | platform_hw_timer_callback_t | bus_tc_cb_ptr | ) |
Referenced by platform_create_timer().
void platform_delete_bus_timer | ( | void * | timer_handle | ) |
Referenced by platform_delete_timer().
void platform_start_bus_timer | ( | void * | timer_handle, |
uint32_t | ms | ||
) |
Referenced by platform_start_timer().
void platform_stop_bus_timer | ( | void * | timer_handle | ) |
Referenced by platform_stop_timer().
void platform_stop_stack_timers | ( | void | ) |
Referenced by main().
void tc_cc0_cb | ( | struct tc_module *const | module_inst | ) |
References NULL, tc_count_ms, tc_instance, tc_set_count_value(), timeout_count_ms, and timer_callback.
Referenced by hw_timer_init().
void tc_cc1_cb | ( | struct tc_module *const | module_inst | ) |
References platform_cc1_cb.
|
static |
Referenced by platform_create_hw_timer(), and platform_stop_stack_timers().
platform_hw_timer_callback_t platform_cc1_cb |
Referenced by tc_cc1_cb().
|
static |
Referenced by hw_timer_start_ms(), and tc_cc0_cb().
|
static |
Referenced by hw_timer_start_ms(), and tc_cc0_cb().
hw_timer_callback_t timer_callback |
Referenced by configure_timer(), hw_timer_register_callback(), and tc_cc0_cb().
uint32_t timer_count_per_ms |