mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 02:27:33 +00:00
Update description and debug serial usage
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
* @brief Implementation for UART using HAL.
|
||||
* @brief Implementation of UART using HAL.
|
||||
*
|
||||
* Define STA_HAL_UART_ENABLE in <sta/config.hpp> to enable.
|
||||
* Define **STA_HAL_UART_ENABLE** in `<sta/config.hpp>` to enable module.
|
||||
*
|
||||
* To enable the global DebugSerial instance (example using UART1) define:
|
||||
* #define STA_HAL_UART_DEBUG huart1
|
||||
* To use a HAL UART instance (e.g. UART1) for `<sta/debug_serial.hpp>` define:
|
||||
* #define STA_HAL_UART_DEBUG_SERIAL huart1
|
||||
*/
|
||||
#ifndef STA_HAL_UART_HPP
|
||||
#define STA_HAL_UART_HPP
|
||||
@@ -37,14 +37,6 @@ namespace sta
|
||||
private:
|
||||
UART_HandleTypeDef * handle_; /**< UART handle */
|
||||
};
|
||||
|
||||
|
||||
#ifdef STA_HAL_UART_DEBUG
|
||||
/**
|
||||
* @brief Global UART instance for debug output.
|
||||
*/
|
||||
extern HalUART DebugSerial;
|
||||
#endif // STA_HAL_UART_DEBUG
|
||||
} // namespace sta
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user