Files
Cpp-in-Embedded-Systems/Chapter14/sequencer/hal/uart/inc/uart.hpp
Amar Mahmutbegovic b378383cf5 add Chapter14
2024-11-19 21:29:22 +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