24 lines
308 B
C++
24 lines
308 B
C++
#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
|