MCPcopy Create free account
hub / github.com/coreboot/coreboot / uart_rx_byte

Function uart_rx_byte

src/drivers/uart/sifive.c:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88unsigned char uart_rx_byte(unsigned int idx)
89{
90 struct sifive_uart_registers *regs = uart_platform_baseptr(idx);
91 uint32_t rxdata;
92
93 do {
94 rxdata = read32(&regs->rxdata);
95 } while (rxdata & RXDATA_EMPTY);
96
97 return rxdata & 0xff;
98}
99
100unsigned int uart_input_clock_divider(void)
101{

Callers

nothing calls this directly

Calls 2

uart_platform_baseptrFunction · 0.85
read32Function · 0.50

Tested by

no test coverage detected