uart/hardware0.hpp

31 lines
599 B
C++

#pragma once
#include "settings.hpp"
namespace uart {
namespace detail {
template <class settings, const Mode mode>
class hardware0 {
public:
using data_t = typename settings::data_t;
static constexpr auto BAUD_RATE = settings::BAUD_RATE;
static constexpr auto DATA_BITS = settings::DATA_BITS;
static constexpr auto PARITY = settings::PARITY;
static constexpr auto STOP_BITS = settings::STOP_BITS;
static void init() {}
static void txByte(data_t byte)
{
static_cast<void>(byte);
}
static data_t rxByte() {}
static data_t peek() {}
};
} // namespace detail
} // namespace uart