From bcdce9633dc351d3bc7f347a165348b8fab87cd9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 15 Feb 2022 12:33:52 +0100 Subject: refactor: reorganize files & improve classes --- src/utils/serial.hpp | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/utils/serial.hpp (limited to 'src/utils/serial.hpp') diff --git a/src/utils/serial.hpp b/src/utils/serial.hpp deleted file mode 100644 index 0d4f929..0000000 --- a/src/utils/serial.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include "smart_string.hpp" - -#include - -class SerialStream -{ -public: - SerialStream(Serial_ serial, uint64_t baud_rate); - - SerialStream &operator<<(const char *str); - SerialStream &operator<<(const SmartString &str); - SerialStream &operator<<(const double &num); - SerialStream &operator<<(const int &num); - SerialStream &operator<<(const unsigned int &num); - SerialStream &operator<<(const uint32_t &num); - - SerialStream &operator<<(void (*manipulator)(SerialStream *)); - - void write(const char *str); - - void flush(); - -private: - Serial_ _serial; -}; - -void endl(SerialStream *serial_stream); -- cgit v1.2.3-18-g5258