Main Page | File List | Globals | Related Pages

uart.c File Reference

Module to simulate the AVR's uart module. More...

Go to the source code of this file.

Functions

UARTIntr_T * uart0_intr_new (uint8_t uart_num)
UARTIntr_T * uart1_intr_new (uint8_t uart_num)
void uart0_intr_construct (UARTIntr_T *uart)
void uart1_intr_construct (UARTIntr_T *uart, uint8_t uart_num)
void uart_intr_destroy (void *uart)
UART_T * uart_new (uint8_t uart_num)
void uart0_construct (UART_T *uart)
void uart1_construct (UART_T *uart, uint8_t uart_num)
void uart_destroy (void *uart)
uint16_t uart_port_rd (int addr)
void uart_port_wr (uint8_t val)

Variables

int UART_Int_Table []
int UART0_Int_Table []
int UART1_Int_Table []


Detailed Description

Module to simulate the AVR's uart module.

Definition in file uart.c.


Function Documentation

UARTIntr_T* uart0_intr_new uint8_t  uart_num  ) 
 

Allocate a new uart interrupt.

Definition at line 93 of file uart.c.

References avr_new, class_overload_destroy(), uart0_intr_construct(), and uart_intr_destroy().

Referenced by dev_supp_create_core().

void uart0_intr_construct UARTIntr_T *  uart  ) 
 

Constructor for uart interrupt object.

Definition at line 126 of file uart.c.

References avr_error, and vdev_construct().

Referenced by uart0_intr_new().

void uart_intr_destroy void *  uart  ) 
 

Destructor for uart interrupt object.

Definition at line 163 of file uart.c.

References vdev_destroy().

Referenced by uart0_intr_new().

UART_T* uart_new uint8_t  uart_num  ) 
 

Allocate a new uart structure.

Definition at line 312 of file uart.c.

References avr_new, class_overload_destroy(), uart0_construct(), and uart_destroy().

Referenced by dev_supp_create_core().

void uart0_construct UART_T *  uart  ) 
 

Constructor for uart object.

Definition at line 329 of file uart.c.

References avr_error, and vdev_construct().

Referenced by uart_new().

void uart_destroy void *  uart  ) 
 

Destructor for uart object.

Definition at line 365 of file uart.c.

References vdev_destroy().

Referenced by uart_new().


Variable Documentation

int UART_Int_Table[]
 

Initial value:

{ irq_vect_table_index (UART_RX), irq_vect_table_index (UART_UDRE), irq_vect_table_index (UART_TX) }
Definition at line 72 of file uart.c.

int UART0_Int_Table[]
 

Initial value:

{ irq_vect_table_index (USART0_RX), irq_vect_table_index (USART0_UDRE), irq_vect_table_index (USART0_TX) }
Definition at line 78 of file uart.c.

int UART1_Int_Table[]
 

Initial value:

{ irq_vect_table_index (USART1_RX), irq_vect_table_index (USART1_UDRE), irq_vect_table_index (USART1_TX) }
Definition at line 84 of file uart.c.


Automatically generated by Doxygen 1.3.8 on 11 Aug 2004.