uart.h

void uart_init()

Initializes the UART port.

Since

v0.1

void uart_write(u8 *data, u64 len)

Writes a number of bytes to UART port.

Parameters
  • data – a pointer to bytes array to write

  • len – a number of the bytes to write

Since

v0.1

u64 uart_read(u8 *data, u64 len)

Reads a number of bytes to the data array.

Parameters
  • data – a pointer to bytes array to record read result to

  • len – a number of the bytes to read

Since

v0.1

void uart_read_blocking(u8 *data, u64 len)

Performs a blocking reading for a number of bytes to the data array.

Parameters
  • data – a pointer to bytes array to record read result to

  • len – a number of the bytes to read

Since

v0.1