adc/adc.hpp

24 lines
308 B
C++
Raw Normal View History

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