Macro imxrt_uart_panic::register
source · macro_rules! register { ($uart: ident, $tx_pin: ident, $rx_pin: ident, $baud: expr, $idle_func: expr) => { ... }; ($uart: ident, $tx_pin: ident, $rx_pin: ident, $baud: expr) => { ... }; }
Expand description
Registers the UART panic handler.
Arguments
uart: A peripheral defined inimxrt_ral::lpuart.tx_pin: The UART tx pin. Usually defined in the bsp, such as [teensy4_bsp::pins::common].rx_pin: The UART rx pin. Usually defined in the bsp, such as [teensy4_bsp::pins::common].baud: The UART baud rate. Most common ones are9600and115200.idle_func: Optional. Specifies what function to enter in the end. Default iscortex_m::asm::udf, but this could for example be used to enterteensy4_panic::sos.