picolibrary-microchip-megaavr

Interactive Testing Utilities

Interactive testing utilities are available if the PICOLIBRARY_MICROCHIP_MEGAAVR_ENABLE_INTERACTIVE_TESTING project configuration option is ON.

Table of Contents

  1. Fatal Error Trap
  2. Log

Fatal Error Trap

picolibrary-microchip-megaavr provides an implementation for ::picolibrary::trap_fatal_error() for use in interactive tests. The implementation is defined in the source/picolibrary/testing/interactive/microchip/megaavr/fatal_error.cc source file. The picolibrary-microchip-megaavr static library does not include this implementation. To use this implementation, link with the picolibrary-microchip-megaavr-testing-interactive-fatal_error static library.

Log

The ::picolibrary::Testing::Interactive::Microchip::megaAVR::Log class is a reliable output stream for interacting with a Microchip megaAVR USART peripheral. The ::picolibrary::Testing::Interactive::Microchip::megaAVR::Log class is defined in the include/picolibrary/testing/interactive/microchip/megaavr/log.h/source/picolibrary/testing/interactive/microchip/megaavr/log.cc header/source file pair.