mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-09-28 21:17:33 +00:00
Update description and debug serial usage
This commit is contained in:
@@ -17,16 +17,22 @@ namespace sta
|
||||
} // namespace sta
|
||||
|
||||
|
||||
#ifdef STA_HAL_UART_DEBUG
|
||||
#ifdef STA_HAL_UART_DEBUG_SERIAL
|
||||
|
||||
// Get extern declaration for DebugSerial because const namespace level variables have internal linkage by default
|
||||
#include <sta/debug_serial.hpp>
|
||||
|
||||
#include <usart.h>
|
||||
|
||||
namespace sta
|
||||
{
|
||||
HalUART DebugSerial(&STA_HAL_UART_DEBUG);
|
||||
HalUART gHalDebugSerial(&STA_HAL_UART_DEBUG_SERIAL);
|
||||
|
||||
// Used by <sta/debug.hpp>
|
||||
UART * const DebugSerial = &gHalDebugSerial;
|
||||
} // namespace sta
|
||||
|
||||
#endif // STA_HAL_UART_DEBUG
|
||||
#endif // STA_HAL_UART_DEBUG_SERIAL
|
||||
|
||||
|
||||
#endif // STA_HAL_UART_ENABLE
|
||||
|
Reference in New Issue
Block a user