Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zephyr - ADC - ATSAMD21G18A #36716

Closed
ieeeHuseyin opened this issue Jul 4, 2021 · 2 comments
Closed

zephyr - ADC - ATSAMD21G18A #36716

ieeeHuseyin opened this issue Jul 4, 2021 · 2 comments
Labels
area: Samples Samples platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) Stale

Comments

@ieeeHuseyin
Copy link

I want to create an ADC sample for the ATSAMD21G18A processor (for pins PA02-PA03-PA04) But I don't understand which sample should I use. Can you help me?

@henrikbrixandersen henrikbrixandersen added area: Samples Samples platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) question labels Jul 12, 2021
@github-actions
Copy link

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

@krucialdavidw
Copy link

krucialdavidw commented Mar 17, 2023

For any weary traveller, I had to port from zephyr 2.7 -> 3.3.99 for the adafruit m0 LoRa feather and got a quick fix by defining the status and pinctrl for the adc in the overlay. This was to measure PA07 - AIN7 - Feather pin 9 and PB02 - AIN10 - Feather pin A5

overlay:

&pinctrl {
    adc0_adc: adc0_adc {
        group1 {
            pinmux = <PA7B_ADC_AIN7>, <PB2B_ADC_AIN10>; 
        };
    };
};

&adc {
    status = "okay";
	pinctrl-0 = <&adc0_adc>;
	pinctrl-names = "default";
};

HTH!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Samples Samples platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) Stale
Projects
None yet
Development

No branches or pull requests

3 participants