Module to simulate the AVR's uart module. More...
Go to the source code of this file.
Functions | |
VDevice * | uart_int_create (int addr, char *name, int rel_addr, void *data) |
UARTIntr_T * | uart_intr_new (int addr, char *name, void *data) |
void | uart_intr_construct (UARTIntr_T *uart, int addr, char *name) |
void | uart_intr_destroy (void *uart) |
VDevice * | uart_create (int addr, char *name, int rel_addr, void *data) |
UART_T * | uart_new (int addr, char *name, int rel_addr) |
void | uart_construct (UART_T *uart, int addr, char *name, int rel_addr) |
void | uart_destroy (void *uart) |
uint16_t | uart_port_rd (int addr) |
void | uart_port_wr (uint8_t val) |
Variables | |
unsigned int | UART_Int_Table [] |
unsigned int | UART0_Int_Table [] |
unsigned int | UART1_Int_Table [] |
Module to simulate the AVR's uart module.
Definition in file uart.c.
VDevice* uart_int_create | ( | int | addr, |
char * | name, | ||
int | rel_addr, | ||
void * | data | ||
) |
void uart_intr_construct | ( | UARTIntr_T * | uart, |
int | addr, | ||
char * | name | ||
) |
Constructor for uart interrupt object.
Definition at line 128 of file uart.c.
References avr_error, and vdev_construct().
void uart_intr_destroy | ( | void * | uart | ) |
Destructor for uart interrupt object.
Definition at line 179 of file uart.c.
References vdev_destroy().
VDevice* uart_create | ( | int | addr, |
char * | name, | ||
int | rel_addr, | ||
void * | data | ||
) |
void uart_construct | ( | UART_T * | uart, |
int | addr, | ||
char * | name, | ||
int | rel_addr | ||
) |
Constructor for uart object.
Definition at line 356 of file uart.c.
References avr_error, and vdev_construct().
void uart_destroy | ( | void * | uart | ) |
unsigned int UART_Int_Table[] |
unsigned int UART0_Int_Table[] |