mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-13 01:55:59 +00:00
21 lines
411 B
C++
21 lines
411 B
C++
#include <sta/debug/printing/printable_serial.hpp>
|
|
|
|
#ifdef STA_PLATFORM_ARDUINO
|
|
|
|
#include <sta/devices/arduino/hal.hpp>
|
|
|
|
namespace sta
|
|
{
|
|
PrintableSerial::PrintableSerial(unsigned long baud)
|
|
: Printable{}
|
|
{
|
|
Serial.begin(baud);
|
|
}
|
|
|
|
void PrintableSerial::print(const char * str, size_t length)
|
|
{
|
|
Serial.write(str);
|
|
}
|
|
} // namespace sta
|
|
|
|
#endif // STA_PLATFORM_ARDUINO
|