SAM Timer/Counter Driver for Control Applications DMA Quickstart.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
#include <conf_quick_start_dma.h>
Functions | |
COMPILER_ALIGNED (16) | |
[compare_dma_resource] [compare_dma_descriptor] More... | |
static void | config_dma_for_capture (void) |
[config_event_for_capture] More... | |
static void | config_dma_for_wave (void) |
[config_dma_for_capture] More... | |
static void | configure_tcc (void) |
[config_dma_for_wave] More... | |
int | main (void) |
[setup] More... | |
Variables | |
struct dma_resource | capture_dma_resource |
[capture_dma_resource] More... | |
struct dma_resource | compare_dma_resource |
[compare_dma_resource] More... | |
uint16_t | compare_values [3] |
[module_inst] More... | |
struct tcc_module | tcc_instance |
[module_inst] More... | |
COMPILER_ALIGNED | ( | 16 | ) |
[compare_dma_resource] [compare_dma_descriptor]
[capture_dma_resource] [capture_dma_descriptor]
[compare_dma_descriptor] [compare_variables] [capture_variables]
[capture_event_resource] [capture_variables] [config_event_for_capture]
[event_setup_1]
[event_setup_1]
[event_setup_2]
[event_setup_2]
[event_setup_3]
[event_setup_3]
[event_setup_4]
[event_setup_4]
[event_setup_5]
[event_setup_5]
Referenced by stream_mem_to_mem().
|
static |
[config_event_for_capture]
[config_dma_for_capture]
[config_dma_resource_for_capture] [dma_setup_1]
[dma_setup_1]
[dma_setup_2]
[dma_setup_2]
[dma_setup_3]
[dma_setup_3]
[dma_setup_4]
[dma_setup_4] [config_dma_resource_for_capture]
[config_dma_descriptor_for_capture] [dma_setup_5]
[dma_setup_5]
[dma_setup_6]
[dma_setup_6]
[dma_setup_7]
[dma_setup_7]
[dma_setup_8]
[dma_setup_8] [config_dma_descriptor_for_capture]
[config_dma_job_for_capture] [dma_setup_10]
[dma_setup_10] [dma_setup_11]
[dma_setup_11] [config_dma_job_for_capture]
References dma_descriptor_config::beat_size, dma_descriptor_config::block_transfer_count, capture_dma_resource, CONF_PWM_MODULE, dma_descriptor_config::destination_address, dma_add_descriptor(), dma_allocate(), DMA_BEAT_SIZE_HWORD, dma_descriptor_create(), dma_descriptor_get_config_defaults(), dma_get_config_defaults(), dma_start_transfer_job(), DMA_STEPSEL_SRC, DMA_TRIGGER_ACTION_BEAT, dma_resource_config::peripheral_trigger, dma_descriptor_config::source_address, dma_descriptor_config::src_increment_enable, dma_descriptor_config::step_selection, and dma_resource_config::trigger_action.
Referenced by configure_tcc().
|
static |
[config_dma_for_capture]
[config_dma_for_wave]
[config_dma_resource_for_wave]
[config_dma_resource_for_wave]
[config_dma_descriptor_for_wave]
[config_dma_descriptor_for_wave]
[config_dma_job_for_wave]
[config_dma_job_for_wave]
References dma_descriptor_config::beat_size, dma_descriptor_config::block_transfer_count, compare_dma_resource, compare_values, CONF_PWM_CHANNEL, CONF_PWM_MODULE, dma_descriptor_config::destination_address, dma_add_descriptor(), dma_allocate(), DMA_BEAT_SIZE_HWORD, dma_descriptor_create(), dma_descriptor_get_config_defaults(), dma_get_config_defaults(), dma_start_transfer_job(), DMA_TRIGGER_ACTION_BEAT, dma_descriptor_config::dst_increment_enable, dma_resource_config::peripheral_trigger, dma_descriptor_config::source_address, and dma_resource_config::trigger_action.
Referenced by configure_tcc().
|
static |
[config_dma_for_wave]
[setup]
[setup_config]
[setup_config] [setup_config_defaults]
[setup_config_defaults]
[setup_change_config]
[setup_change_config]
[setup_change_config_pwm]
[setup_change_config_pwm]
[setup_set_config]
[setup_set_config]
[setup_events]
[setup_events]
[setup_event_sys]
[setup_event_sys]
[setup_dma]
[setup_dma]
[setup_enable]
[setup_enable]
References tcc_match_wave_config::channel_function, tcc_counter_config::clock_prescaler, tcc_config::compare, compare_values, CONF_PWM_CHANNEL, CONF_PWM_MODULE, CONF_PWM_OUT_MUX, CONF_PWM_OUT_PIN, CONF_PWM_OUTPUT, config_dma_for_capture(), config_dma_for_wave(), tcc_config::counter, tcc_pins_config::enable_wave_out_pin, tcc_events::input_config, tcc_match_wave_config::match, tcc_input_event_config::modify_action, tcc_counter_config::period, tcc_config::pins, TCC_CHANNEL_FUNCTION_CAPTURE, TCC_CLOCK_PRESCALER_DIV1024, tcc_enable(), tcc_enable_events(), tcc_get_config_defaults(), tcc_init(), tcc_instance, TCC_WAVE_GENERATION_SINGLE_SLOPE_PWM, TCC_WAVE_POLARITY_0, tcc_match_wave_config::wave_generation, tcc_pins_config::wave_out_pin, tcc_pins_config::wave_out_pin_mux, and tcc_match_wave_config::wave_polarity.
Referenced by main().
int main | ( | void | ) |
[setup]
[setup_init]
[setup_init]
[main]
[main_loop]
[main_loop]
[main]
References configure_tcc(), and system_init().
struct dma_resource capture_dma_resource |
[capture_dma_resource]
Referenced by config_dma_for_capture().
struct dma_resource compare_dma_resource |
[compare_dma_resource]
Referenced by config_dma_for_wave().
uint16_t compare_values[3] |
[module_inst]
[compare_variables]
Referenced by config_dma_for_wave(), and configure_tcc().
struct tcc_module tcc_instance |
[module_inst]
Referenced by configure_tcc(), configure_tcc_callbacks(), and eic_callback_to_clear_halt().