Files
Cpp-in-Embedded-Systems/Chapter17/cib/hal/uart/inc/uart.hpp
Amar Mahmutbegovic 526e6ec009 rename chapters
2025-02-09 13:11:21 +01:00

15 lines
219 B
C++

#pragma once
#include <cstdint>
#include <span>
namespace hal
{
class uart
{
public:
virtual void init(std::uint32_t baudrate) = 0;
virtual void write(std::span<const char> data) = 0;
};
}; // namespace hal