Added basic layout for new library implementation

This commit is contained in:
2019-07-27 18:55:17 +02:00
parent e07ba7ecd8
commit f9c34b09ba
5 changed files with 304 additions and 0 deletions

30
hardware0.hpp Normal file
View File

@@ -0,0 +1,30 @@
#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