[riot-notifications] [RIOT-OS/RIOT] boards/sam0: refactor ADC_0 into plain ADC (#12291)

Kees Bakker notifications at github.com
Mon Sep 23 21:46:27 CEST 2019

### Contribution description

This change is for all boards with a sam0 cpu. This cpu has just one ADC.
It is unnecessary to have defines with ADC_0_ prefix as if multiple ADCs
are possible.

Some defines were not used, such as ADC_0_EN, ADC_0_CHANNELS,
are deleted.

Change all ADC_0_ prefixes to ADC_

### Testing procedure

This PR changes the ADC configuration of all boards with a "sam0" cpu.
 * arduino-mkr1000
 * arduino-mkrfox1200
 * arduino-mkrzero
 * feather-m0
 * hamilton
 * samd21-xpro
 * saml10-xpro
 * saml11-xpro
 * saml21-xpro
 * samr21-xpro
 * samr30-xpro
 * sensebox_samd21
 * sodaq-explorer
 * sodaq-one
 * sodaq-sara-aff

Since almost every configuration is copy/pasted from another it might be
sufficient to test on just one or two boards.

I've tested with sodaq-one, which can measure battery voltage. However, a change in the sodaq-one ADC configuration is necessary to actually measure that voltage. (These changes will come in a separate PR.)
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * boards/sam0: refactor ADC_0 into plain ADC

-- File Changes --

    M boards/common/arduino-mkr/include/periph_conf.h (19)
    M boards/common/saml1x/include/periph_conf.h (9)
    M boards/feather-m0/include/periph_conf.h (19)
    M boards/hamilton/include/periph_conf.h (19)
    M boards/samd21-xpro/include/periph_conf.h (19)
    M boards/saml21-xpro/include/periph_conf.h (9)
    M boards/samr21-xpro/include/periph_conf.h (19)
    M boards/samr30-xpro/include/periph_conf.h (9)
    M boards/sensebox_samd21/include/periph_conf.h (18)
    M boards/sodaq-explorer/include/periph_conf.h (19)
    M boards/sodaq-one/include/periph_conf.h (19)
    M boards/sodaq-sara-aff/include/periph_conf.h (19)
    M cpu/sam0_common/periph/adc.c (54)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190923/9204a1fb/attachment.htm>

More information about the notifications mailing list