uart/software.hpp

22 lines
393 B
C++
Raw Normal View History

#pragma once
2019-07-28 12:15:19 +02:00
#include "config.hpp"
2019-07-28 12:15:19 +02:00
#include "../io/io.hpp"
2020-05-16 17:42:52 +02:00
#include "../util/type.hpp"
2019-07-28 12:15:19 +02:00
namespace uart {
template <io::P rxPin, io::P txPin, class cfg = Config<>>
class Software {
2020-05-16 17:42:52 +02:00
static_assert(util::always_false_v<cfg>, "Not implemented");
2019-08-03 10:58:32 +02:00
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