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 |
Referenced by main().
|
static |
[int_handler]
Configure UART console.
References uart_rs232_options::baudrate, stdio_serial_init(), and sysclk_enable_peripheral_clock().
Referenced by main().
void console_uart_irq_handler | ( | void | ) |
Interrupt handler for UART interrupt.
[int_handler]
int main | ( | void | ) |
Application entry point for pdc_uart example.
[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().