2019-07-27 18:55:17 +02:00
|
|
|
#pragma once
|
2019-07-28 12:15:19 +02:00
|
|
|
|
2019-07-28 14:00:46 +02:00
|
|
|
#include "config.hpp"
|
2019-08-03 10:58:32 +02:00
|
|
|
#include "utils.hpp"
|
2019-07-28 14:00:46 +02:00
|
|
|
|
2019-07-28 12:15:19 +02:00
|
|
|
#include "../io/io.hpp"
|
|
|
|
|
|
|
|
namespace uart {
|
|
|
|
|
2019-07-28 17:57:49 +02:00
|
|
|
template <io::P rxPin, io::P txPin, class cfg = Config<>>
|
|
|
|
class Software {
|
2019-08-03 10:58:32 +02:00
|
|
|
static_assert(util::always_false_v<cfg>, "Not implemented");
|
|
|
|
|
2019-07-28 12:15:19 +02:00
|
|
|
public:
|
2019-07-28 14:08:41 +02:00
|
|
|
using data_t = typename cfg::data_t;
|
|
|
|
static constexpr auto DATA_BITS = cfg::DATA_BITS;
|
2019-07-28 12:15:19 +02:00
|
|
|
|
|
|
|
static void init() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace uart
|