SAM Timer/Counter Driver with DMA Quickstart.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | TRANSFER_COUNTER (32) |
[transfer_length] More... | |
#define | TRANSFER_SIZE (16) |
[dma_resource] More... | |
Functions | |
void | configure_dma_resource (struct dma_resource *resource) |
[_transfer_done] More... | |
void | configure_tc (void) |
[example_descriptor] More... | |
int | main (void) |
[setup_dma_transfer_descriptor] More... | |
void | setup_dma_descriptor (DmacDescriptor *descriptor) |
[config_dma_resource] More... | |
void | transfer_done (struct dma_resource *const resource) |
[config_tc] More... | |
Variables | |
static uint8_t | destination_memory [TRANSFER_SIZE *TRANSFER_COUNTER] |
[source_memory] More... | |
struct dma_resource | example_resource |
[module_inst] More... | |
DmacDescriptor example_descriptor | SECTION_DMAC_DESCRIPTOR |
[transfer_done_flag] More... | |
static uint8_t | source_memory [TRANSFER_SIZE *TRANSFER_COUNTER] |
[transfer_counter] More... | |
struct tc_module | tc_instance |
[module_inst] More... | |
static volatile bool | transfer_is_done = false |
[destination_memory] More... | |
#define TRANSFER_COUNTER (32) |
#define TRANSFER_SIZE (16) |
void configure_dma_resource | ( | struct dma_resource * | resource | ) |
[_transfer_done]
[config_dma_resource]
[dma_setup_1]
[dma_setup_1]
[dma_setup_2]
[dma_setup_2]
[dma_setup_3]
[dma_setup_3]
void configure_tc | ( | void | ) |
[example_descriptor]
[config_tc]
[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_enable]
[setup_enable]
int main | ( | void | ) |
[setup_dma_transfer_descriptor]
[setup]
[setup_init]
[setup_init]
[setup_dma_resource]
[setup_dma_resource]
[setup_dma_descriptor]
[setup_dma_descriptor]
[add_descriptor_to_resource]
[add_descriptor_to_resource]
[setup_callback_register]
[setup_callback_register]
[setup_enable_callback]
[setup_enable_callback]
[setup_source_memory_content]
[setup_source_memory_content]
[main] [main_transfer_loop]
[main_1]
[main_1]
[main_2]
[main_2]
[main_3]
[main_3]
[main_4]
[main_4]
[main_transfer_loop]
[endless_loop]
[endless_loop] [main]
References configure_dma_resource(), configure_tc(), dma_add_descriptor(), DMA_CALLBACK_TRANSFER_DONE, dma_enable_callback(), dma_register_callback(), dma_start_transfer_job(), example_resource, i, setup_dma_descriptor(), source_memory, system_init(), TRANSFER_COUNTER, transfer_done(), transfer_is_done, and TRANSFER_SIZE.
void setup_dma_descriptor | ( | DmacDescriptor * | descriptor | ) |
[config_dma_resource]
[setup_dma_transfer_descriptor]
[dma_setup_4]
[dma_setup_4]
[dma_setup_5]
[dma_setup_5]
[dma_setup_6]
[dma_setup_6]
[dma_setup_7]
[dma_setup_7]
void transfer_done | ( | struct dma_resource *const | resource | ) |
|
static |
[source_memory]
[destination_memory]
struct dma_resource example_resource |
[module_inst]
DmacDescriptor example_descriptor SECTION_DMAC_DESCRIPTOR |
[transfer_done_flag]
[example_descriptor]
|
static |
struct tc_module tc_instance |
[module_inst]