std1.0.0-beta-7 SafeC docs

std :: hal::uart

Struct std::UartGeneric

#include <std/hal/uart.h> source

struct UartGeneric { }

Each chip: init (set the baud rate from the input clock and enable TX/RX; clock_hz == 0 keeps whatever the boot firmware configured), the two ready flags, and one-byte data access. The driver does the waiting.

Methods

§void init(unsigned long base, unsigned int baud, unsigned int clock_hz) constsource · definition
§int tx_ready(unsigned long base) constsource · definition
§int rx_ready(unsigned long base) constsource · definition
§void put(unsigned long base, unsigned char c) constsource · definition
§unsigned char get(unsigned long base) constsource · definition