uart/software.hpp

22 lines
386 B
C++
Raw Normal View History

#pragma once
2019-07-28 12:15:19 +02:00
#include "config.hpp"
2019-08-03 10:58:32 +02:00
#include "utils.hpp"
2019-07-28 12:15:19 +02:00
#include "../io/io.hpp"
namespace uart {
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