2020-02-01 22:47:27 +01:00
|
|
|
#pragma once
|
2020-02-01 23:41:18 +01:00
|
|
|
|
|
|
|
#include "hardware.hpp"
|
|
|
|
|
|
|
|
#include "../io/io.hpp"
|
|
|
|
|
|
|
|
namespace adc {
|
|
|
|
|
|
|
|
template <typename... T>
|
|
|
|
struct Config {
|
|
|
|
};
|
|
|
|
|
|
|
|
template <typename Cfg, io::P pin>
|
|
|
|
class Adc {
|
|
|
|
public:
|
2020-02-09 20:36:25 +01:00
|
|
|
static_assert(detail::supports_adc_v<pin>, "Pin does not support ADC");
|
|
|
|
|
2020-02-01 23:41:18 +01:00
|
|
|
void read() {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace adc
|