Expand description
Helpful debugging utilities.
These are used to output to the serial port that was configured using
one of the panicout
feature flags.
It is your responsibility to initialise that port with a suitable baud rate/serial protocol as early as possible in your program.
For Processor | Available panic output Features (pick 1) |
---|---|
atmega4809 | panicout_usart0 , panicout_usart1 , panicout_usart2 , panicout_usart3 |
atmega328p | panicout_usart0 |
§Synchronous/Blocking
These functions all use synchronous transmit functions, and will block the processor entirely (disabling interrupts) during execution. This makes them resilient to any failures (e.g. deadlocks or similar) in the operating system, helpful for debugging - but means they are absolutely NOT to be used for general I/O.
Functions§
- Print a string to the serial port configured with a
panic_stdout
feature. If no such feature is enabled, this call does nothing. - Print a summary of all currently loaded threads and their state to the serial port configured by the
panic_stdout
feature. - Print a u16 to the serial port configured with a
panic_stdout
feature, as a decimal. - Print a u32 to the serial port configured with a
panic_stdout
feature, as a decimal.