mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 10:27:34 +00:00
added debug printing for arduino
This commit is contained in:
29
include/sta/debug/printing/printable_serial.hpp
Normal file
29
include/sta/debug/printing/printable_serial.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef STA_CORE_PRINTABLE_SERIAL_HPP
|
||||
#define STA_CORE_PRINTABLE_SERIAL_HPP
|
||||
|
||||
#include <sta/debug/printing/printable.hpp>
|
||||
#ifdef STA_PLATFORM_ARDUINO
|
||||
|
||||
namespace sta
|
||||
{
|
||||
class PrintableSerial: public sta::BasePrintable
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @brief Construct a new Printable Serial object
|
||||
*/
|
||||
PrintableSerial(unsigned long baud);
|
||||
|
||||
/**
|
||||
* @brief Print string.
|
||||
*
|
||||
* @param str String buffer
|
||||
* @param length String length
|
||||
*/
|
||||
void print(const char * str, size_t length) override;
|
||||
};
|
||||
} // namespace sta
|
||||
|
||||
#endif // STA_PLATFORM_ARDUINO
|
||||
|
||||
#endif // STA_CORE_PRINTABLE_SERIAL_HPP
|
Reference in New Issue
Block a user