Macro define_uart
macro_rules! define_uart {
( name: $name:ident, device: $device:ident, tx: $tx:ident, rx: $rx:ident, host_facing: $_host_facing:literal ) => { ... };
}Available on crate feature
uart only.Expand description
Creates a struct of the given name, containing all peripherals needed to set up a UART.
It holds the TX and RX pins, and can be taken through the same mechanism as those defined using
define_peripherals! (that is, by using ariel_os::task(autostart, peripherals) or the underlying TakePeripherals trait).
The struct also has a method .build_with_config() that can be used to initialize an Ariel OS uart
instance.