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:
21
src/debug/printing/printable_serial.cpp
Normal file
21
src/debug/printing/printable_serial.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <sta/debug/printing/printable_serial.hpp>
|
||||
|
||||
#ifdef STA_PLATFORM_ARDUINO
|
||||
|
||||
#include <sta/devices/arduino/hal.hpp>
|
||||
|
||||
namespace sta
|
||||
{
|
||||
PrintableSerial::PrintableSerial(unsigned long baud)
|
||||
: BasePrintable()
|
||||
{
|
||||
Serial.begin(baud);
|
||||
}
|
||||
|
||||
void PrintableSerial::print(const char * str, size_t length)
|
||||
{
|
||||
Serial.write(str);
|
||||
}
|
||||
} // namespace sta
|
||||
|
||||
#endif // STA_PLATFORM_ARDUINO
|
Reference in New Issue
Block a user