add Chapter13
This commit is contained in:
14
Chapter13/uart_c_hal_wrapper/hal/uart/inc/uart.hpp
Normal file
14
Chapter13/uart_c_hal_wrapper/hal/uart/inc/uart.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user