Macros | |
#define | STACK_HW_TIMERS 2 |
Typedefs | |
typedef void(* | hw_timer_callback_t )(void) |
typedef void(* | platform_hw_timer_callback_t )(void *) |
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) |
#define STACK_HW_TIMERS 2 |
typedef void(* hw_timer_callback_t)(void) |
typedef void(* platform_hw_timer_callback_t)(void *) |
void hw_timer_init | ( | void | ) |
References tc_config::clock_prescaler, tc_config::clock_source, tc_16bit_config::compare_capture_channel, tc_config::counter_16_bit, tc_config::counter_8_bit, tc_config::counter_size, GCLK_GENERATOR_0, tc_8bit_config::period, TC_CALLBACK_CC_CHANNEL0, tc_cc0_cb(), TC_CLOCK_PRESCALER_DIV1024, TC_COUNTER_SIZE_16BIT, tc_enable(), tc_get_config_defaults(), tc_init(), tc_instance, and tc_register_callback().
Referenced by main().
void hw_timer_register_callback | ( | hw_timer_callback_t | cb_ptr | ) |
References timer_callback.
Referenced by main().
void hw_timer_start | ( | uint32_t | timer_val_s | ) |
References hw_timer_start_ms().
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 | ) |
References TC_CALLBACK_CC_CHANNEL0, tc_count_ms, tc_enable_callback(), tc_instance, tc_set_count_value(), and timeout_count_ms.
Referenced by hw_timer_start(), and main().
void hw_timer_stop | ( | void | ) |
References TC_CALLBACK_CC_CHANNEL0, tc_disable_callback(), and tc_instance.
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 | ) |
References tc_config::clock_prescaler, tc_config::clock_source, tc_config::count_direction, tc_config::counter_size, hw_timers, i, NULL, tc_config::oneshot, system_gclk_gen_get_hz(), TC_CALLBACK_OVERFLOW, TC_COUNT_DIRECTION_DOWN, TC_COUNTER_SIZE_32BIT, tc_enable(), tc_enable_callback(), tc_get_config_defaults(), tc_init(), tc_register_callback(), tc_set_count_value(), tc_start_counter(), tc_stop_counter(), hw_timer_struct::timer_frequency, and hw_timer_struct::timer_usage.
Referenced by platform_create_timer().
void platform_delete_bus_timer | ( | void * | timer_handle | ) |
References tc_reset(), tc_stop_counter(), hw_timer_struct::timer_instance, and hw_timer_struct::timer_usage.
Referenced by platform_delete_timer().
void platform_start_bus_timer | ( | void * | timer_handle, |
uint32_t | ms | ||
) |
References tc_set_count_value(), tc_start_counter(), hw_timer_struct::timer_frequency, and hw_timer_struct::timer_instance.
Referenced by platform_start_timer().
void platform_stop_bus_timer | ( | void * | timer_handle | ) |
References tc_stop_counter(), and hw_timer_struct::timer_instance.
Referenced by platform_stop_timer().
void platform_stop_stack_timers | ( | void | ) |
References hw_timers, tc_stop_counter(), and hw_timer_struct::timer_instance.
Referenced by main().