Microchip® Advanced Software Framework

xdmac_example.c File Reference

SAM Direct Memory Access Controller driver example.

Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include <conf_board.h>
#include <conf_clock.h>

Macros

#define BLOCK_LEN   16
 Block length for single transfer. More...
 
#define BUFFER_SIZE   512
 The buffer size for transfer. More...
 
#define MICROBLOCK_LEN   16
 Micro-block length for single transfer. More...
 
#define XDMA_CH   0
 XDMA channel used in this example. More...
 

Functions

static void configure_console (void)
 Configure the console UART. More...
 
int main (void)
 Application entry point. More...
 
void XDMAC_Handler (void)
 XDMAC interrupt handler. More...
 

Variables

static uint8_t dst_buf [BUFFER_SIZE]
 
volatile uint32_t g_xfer_done = 0
 
static COMPILER_WORD_ALIGNED
lld_view0 
lld [2]
 Linked list descriptor. More...
 
static uint8_t src_buf [BUFFER_SIZE]
 
static xdmac_channel_config_t xdmac_channel_cfg
 XDMA channel configuration. More...
 

#define BLOCK_LEN   16

Block length for single transfer.

Referenced by main().

#define BUFFER_SIZE   512

The buffer size for transfer.

Referenced by main().

#define MICROBLOCK_LEN   16

Micro-block length for single transfer.

Referenced by main().

#define XDMA_CH   0

XDMA channel used in this example.

Referenced by main(), and XDMAC_Handler().

static void configure_console ( void  )
static

Configure the console UART.

References uart_rs232_options::baudrate, stdio_serial_init(), and sysclk_enable_peripheral_clock().

Referenced by main().

void XDMAC_Handler ( void  )

XDMAC interrupt handler.

References g_xfer_done, XDMA_CH, and xdmac_channel_get_interrupt_status().

uint8_t dst_buf[BUFFER_SIZE]
static

Referenced by main().

volatile uint32_t g_xfer_done = 0

Referenced by main(), and XDMAC_Handler().

Linked list descriptor.

Referenced by main().

uint8_t src_buf[BUFFER_SIZE]
static

Referenced by main().

xdmac_channel_config_t xdmac_channel_cfg
static

XDMA channel configuration.