Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
uart.c File Reference
#include "xemu/emutools.h"
#include "uart.h"
Include dependency graph for uart.c:

Go to the source code of this file.

Macros

#define UART_START_BITS   1
 
#define UART_STOP_BITS   1
 
#define UART_HAS_PARITY_BIT   0
 

Functions

void uart_init (int baud_crystal_hz, int baud_rate, int cpu_hz)
 

Variables

int cpu_cycles_per_uart_transfer
 

Macro Definition Documentation

◆ UART_HAS_PARITY_BIT

#define UART_HAS_PARITY_BIT   0

Definition at line 24 of file uart.c.

◆ UART_START_BITS

#define UART_START_BITS   1

Definition at line 22 of file uart.c.

◆ UART_STOP_BITS

#define UART_STOP_BITS   1

Definition at line 23 of file uart.c.

Function Documentation

◆ uart_init()

void uart_init ( int  baud_crystal_hz,
int  baud_rate,
int  cpu_hz 
)

Definition at line 28 of file uart.c.

Variable Documentation

◆ cpu_cycles_per_uart_transfer

int cpu_cycles_per_uart_transfer

Definition at line 26 of file uart.c.