mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-13 01:55:59 +00:00
Removed old files
This commit is contained in:
parent
00e9eae43a
commit
3be8893849
@ -1,29 +0,0 @@
|
|||||||
#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 Printable
|
|
||||||
{
|
|
||||||
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
|
|
@ -1,7 +0,0 @@
|
|||||||
#ifndef STA_CORE_ARDUINO_DEBUG_SERIAL_HPP
|
|
||||||
#define STA_CORE_ARDUINO_DEBUG_SERIAL_HPP
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // STA_CORE_ARDUINO_DEBUG_SERIAL_HPP
|
|
@ -1,21 +0,0 @@
|
|||||||
#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
|
|
Loading…
x
Reference in New Issue
Block a user