mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-25 07:34:05 -06:00
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:
parent
872b08601a
commit
618fe0e6fb
5 changed files with 90 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue