[riot-notifications] [RIOT-OS/RIOT] boards/sam0: refactor ADC_0 into plain ADC (#12291)
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
Some defines were not used, such as ADC_0_EN, ADC_0_CHANNELS,
ADC_MAX_CHANNELS, ADC_0_CLK_SOURCE, ADC_0_CHANNELS. These
Change all ADC_0_ prefixes to ADC_
### Testing procedure
This PR changes the ADC configuration of all boards with a "sam0" cpu.
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...
More information about the notifications