Microchip® Advanced Software Framework

qs_tcc_dma.c File Reference

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]

[tx_dma_resource] [tx_dma_descriptor]

[capture_dma_resource] [capture_dma_descriptor]

[compare_dma_descriptor] [compare_variables] [capture_variables]

[capture_event_resource] [capture_variables] [config_event_for_capture]

[tx_dma_descriptor] [tx_variables] [config_dma_for_rx]

[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]

static void config_dma_for_capture ( void  )
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 void configure_tcc ( void  )
static
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]
Initial value:
= {
(0x1000 / 4), (0x1000 * 2 / 4), (0x1000 * 3 / 4)
}

[module_inst]

[compare_variables]

Referenced by config_dma_for_wave(), and configure_tcc().

struct tcc_module tcc_instance

[module_inst]