14#if __has_include(<sbl/hw/hw.hpp>)
21 static void write(
const char* str) { sbl::driver::Uart<>::write_string(str); }
26struct UartFaultOutput {
27 static void write(
const char* str) { sbl::driver::Uart<>::write_string_polling(str); }
31struct TimerTimestamp {
32 static uint32_t now() {
return sbl::driver::Timer::millis(); }
37#define SBL_LOG_HW_DEFAULTS_AVAILABLE 1
39#define SBL_LOG_HW_DEFAULTS_AVAILABLE 0
43#if defined(SBL_HAS_USB) && __has_include(<sbl/usb/cdc.hpp>)
45#define SBL_LOG_USB_DEFAULTS_AVAILABLE 1
47#define SBL_LOG_USB_DEFAULTS_AVAILABLE 0
USB CDC (Virtual COM Port) interface.
Uber-umbrella header for all target-specific code.
void write(const RgbLed &led, const GpioHandle &r, const GpioHandle &g, const GpioHandle &b)
Write RgbLed state to GPIO pins (bang-bang)
Lightweight logging system.