#include #ifdef STA_DEBUG_SERIAL_ENABLED #ifdef STA_PLATFORM_STM32 #include #include // Set platform UART alias using PlatformUART = sta::STM32UART; #endif // STA_PLATFORM_STM32 namespace { // Create platform specific serial interface PlatformUART platformDebugSerial(&STA_DEBUG_SERIAL_UART); } namespace sta { // Create debug serial object using platform specific serial interface PrintableUART DebugSerial(&platformDebugSerial); } // namespace sta #endif // STA_DEBUG_SERIAL_ENABLED