Microchip® Advanced Software Framework

pdc_uart_example.c File Reference

SAM Peripheral DMA Controller Example.

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

#include <asf.h>
#include <stdio_serial.h>
#include <conf_board.h>
#include <conf_pdc_uart_example.h>

Macros

#define BUFFER_SIZE   5
 
#define STRING_EOL   "\r"
 
#define STRING_HEADER
 

Functions

static void configure_console (void)
 [int_handler] More...
 
void console_uart_irq_handler (void)
 Interrupt handler for UART interrupt. More...
 
int main (void)
 Application entry point for pdc_uart example. More...
 

Variables

Pdc * g_p_uart_pdc
 
pdc_packet_t g_pdc_uart_packet
 
uint8_t g_uc_pdc_buffer [BUFFER_SIZE]
 

#define BUFFER_SIZE   5

Referenced by main().

#define STRING_EOL   "\r"
#define STRING_HEADER
Value:
"-- PDC_UART Example --\r\n" \
"-- "BOARD_NAME" --\r\n" \
"-- Compiled: "__DATE__" "__TIME__" --"STRING_EOL
#define BOARD_NAME
Definition: inc/app_init.h:140
#define STRING_EOL
Definition: pdc_uart_example.c:44

Referenced by main().

static void configure_console ( void  )
static
void console_uart_irq_handler ( void  )

Interrupt handler for UART interrupt.

[int_handler]

int main ( void  )

Application entry point for pdc_uart example.

Returns
Unused (ANSI-C compatibility).

[board_setup]

[board_setup]

[pdc_config]

[pdc_config]

[uart_irq]

[uart_irq]

[uart_nvic_irq]

[uart_nvic_irq]

[busy_waiting]

[busy_waiting]

References board_init(), BUFFER_SIZE, configure_console(), g_p_uart_pdc, g_uc_pdc_buffer, NULL, pdc_enable_transfer(), pdc_rx_init(), STRING_HEADER, sysclk_init(), uart_enable_interrupt(), uart_get_pdc_base(), pdc_packet::ul_addr, and pdc_packet::ul_size.

Pdc* g_p_uart_pdc

Referenced by main().

pdc_packet_t g_pdc_uart_packet
uint8_t g_uc_pdc_buffer[BUFFER_SIZE]

Referenced by main().