Skip to main content

install

Function install 

Source
pub fn install(spawner: Spawner, cfg: Config) -> Console
Expand description

One-call console bring-up: register the log backend at cfg.level and, when cfg.serial is Some, build the chip’s transport + spawn the single drain_task. Replaces the hand-wired init() + setup() + drain-spawn sequence in every binary. Call once from main (the core that owns the drain; Fire27’s TX into_async() binds the IRQ to the calling core).

Returns a Console whose rx (when present) goes to the serial-command reader so log TX and command RX share the one port (R7).