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 | ||
) |
Allocate a new uart interrupt.
Definition at line 95 of file uart.c.
References avr_error, avr_new, class_overload_destroy(), uart_intr_construct(), and uart_intr_destroy().
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().
Referenced by uart_int_create().
void uart_intr_destroy | ( | void * | uart | ) |
Destructor for uart interrupt object.
Definition at line 179 of file uart.c.
References avr_core_async_cb_add(), avr_core_irq_raise(), avr_error, vdev_destroy(), and vdev_get_core().
Referenced by uart_int_create().
VDevice* uart_create | ( | int | addr, |
char * | name, | ||
int | rel_addr, | ||
void * | data | ||
) |
Allocate a new uart structure.
Definition at line 335 of file uart.c.
References avr_new, class_overload_destroy(), uart_construct(), and uart_destroy().
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().
Referenced by uart_create().
void uart_destroy | ( | void * | uart | ) |
Destructor for uart object.
Definition at line 389 of file uart.c.
References avr_core_clk_cb_add(), avr_core_get_vdev_by_addr(), avr_error, vdev_destroy(), and vdev_get_core().
Referenced by uart_create().
unsigned int UART_Int_Table[] |
unsigned int UART0_Int_Table[] |