coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
uart_bitbang.c File Reference
#include <console/uart.h>
#include <gpio.h>
#include <boot/coreboot_tables.h>
#include <soc/uart.h>
Include dependency graph for uart_bitbang.c:

Go to the source code of this file.

Functions

void uart_fill_lb (void *data)
 
static void set_tx (int line_state)
 
void uart_init (unsigned int idx)
 
void uart_tx_byte (unsigned int idx, unsigned char data)
 
void uart_tx_flush (unsigned int idx)
 
unsigned char uart_rx_byte (unsigned int idx)
 

Function Documentation

◆ set_tx()

static void set_tx ( int  line_state)
static

Definition at line 13 of file uart_bitbang.c.

References gpio_set(), and UART_TX_PIN.

Referenced by uart_bitbang_tx_byte(), and uart_tx_byte().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ uart_fill_lb()

void uart_fill_lb ( void data)

Definition at line 8 of file uart_bitbang.c.

◆ uart_init()

void uart_init ( unsigned int  idx)

Definition at line 18 of file uart_bitbang.c.

References gpio_output(), and UART_TX_PIN.

Here is the call graph for this function:

◆ uart_rx_byte()

unsigned char uart_rx_byte ( unsigned int  idx)

Definition at line 33 of file uart_bitbang.c.

◆ uart_tx_byte()

void uart_tx_byte ( unsigned int  idx,
unsigned char  data 
)

Definition at line 23 of file uart_bitbang.c.

References set_tx(), and uart_bitbang_tx_byte().

Here is the call graph for this function:

◆ uart_tx_flush()

void uart_tx_flush ( unsigned int  idx)

Definition at line 28 of file uart_bitbang.c.