sam3x8e: Add support for ADC pins

Support analog-to-digital inputs.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2016-12-23 14:49:52 -05:00
parent 872b08601a
commit 618fe0e6fb
5 changed files with 90 additions and 3 deletions

View file

@ -18,7 +18,7 @@ struct analog_in {
uint8_t state, sample_count;
};
static uint8_t
static uint_fast8_t
analog_in_event(struct timer *timer)
{
struct analog_in *a = container_of(timer, struct analog_in, timer);