Atmel Software Framework

avr32/applications/uc3l-ek-touch-demo/qdebug/serial.h File Reference

Macros

#define PDCA_IRQ   AVR32_PDCA_IRQ_2
 
#define PDCA_IRQ_GROUP   AVR32_PDCA_IRQ_GROUP0
 
#define PDCA_PID_USART_RX   AVR32_PDCA_PID_USART3_RX
 
#define PDCA_PID_USART_TX   AVR32_PDCA_PID_USART3_TX
 
#define USART   (&AVR32_USART3)
 
#define USART_IRQ   AVR32_USART3_IRQ
 
#define USART_IRQ_GROUP   AVR32_USART3_IRQ_GROUP
 
#define USART_RX_FUNCTION   AVR32_USART3_RXD_0_0_FUNCTION
 
#define USART_RX_PIN   AVR32_USART3_RXD_0_0_PIN
 
#define USART_TX_FUNCTION   AVR32_USART3_TXD_0_0_FUNCTION
 
#define USART_TX_PIN   AVR32_USART3_TXD_0_0_PIN
 
The channel instance for the USART, PDCA channel 0 for RX (highest priority).
#define PDCA_CHANNEL_RX_USART   2
 
#define PDCA_CHANNEL_TX_USART   3
 
USART BAUD RATE
#define USART_BAUD_RATE   115200
 
System Clock Frequencies
#define TARGET_PBA_FREQ_HZ   (48000000UL)
 
#define TARGET_CPU_FREQ_HZ   (48000000UL)
 

Functions

void SERIAL_Init (void)
 Initialize the Serial interface. More...
 
void SERIAL_Retrieve_Message (void)
 Retrieve message from remote target over the Serial interface. More...
 
void SERIAL_Send_Message (void)
 Send message to remote target over the Serial interface. More...
 

#define PDCA_CHANNEL_RX_USART   2
#define PDCA_CHANNEL_TX_USART   3

Referenced by SERIAL_Init(), and SERIAL_Send_Message().

#define PDCA_IRQ   AVR32_PDCA_IRQ_2

Referenced by SERIAL_Init().

#define PDCA_IRQ_GROUP   AVR32_PDCA_IRQ_GROUP0
#define PDCA_PID_USART_RX   AVR32_PDCA_PID_USART3_RX

Referenced by SERIAL_Init().

#define PDCA_PID_USART_TX   AVR32_PDCA_PID_USART3_TX

Referenced by SERIAL_Init().

#define TARGET_CPU_FREQ_HZ   (48000000UL)

Referenced by SERIAL_Send_Message().

#define TARGET_PBA_FREQ_HZ   (48000000UL)

Referenced by SERIAL_Init(), and uart_configure().

#define USART_BAUD_RATE   115200

Referenced by SERIAL_Init().

#define USART_IRQ   AVR32_USART3_IRQ

Referenced by SERIAL_Init(), and uart_open().

#define USART_IRQ_GROUP   AVR32_USART3_IRQ_GROUP
#define USART_RX_FUNCTION   AVR32_USART3_RXD_0_0_FUNCTION

Referenced by SERIAL_Init().

#define USART_RX_PIN   AVR32_USART3_RXD_0_0_PIN

Referenced by SERIAL_Init().

#define USART_TX_FUNCTION   AVR32_USART3_TXD_0_0_FUNCTION

Referenced by SERIAL_Init().

#define USART_TX_PIN   AVR32_USART3_TXD_0_0_PIN

Referenced by SERIAL_Init().

void SERIAL_Retrieve_Message ( void  )

Retrieve message from remote target over the Serial interface.

References MessageReady, RX_Buffer, SERIAL_RX_Buffer, and SERIAL_RX_index.

void SERIAL_Send_Message ( void  )