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

Dylan Laduranty notifications at github.com
Mon Sep 30 21:14:36 CEST 2019

dylad commented on this pull request.

Tested on SAML11 and SAML21 with tests/periph_adc and a potentiometer attached to one ADC line.
One last question and we're good to go.

 static const adc_conf_chan_t adc_channels[] = {
     /* port, pin, muxpos */
     {GPIO_PIN(PA, 6), ADC_INPUTCTRL_MUXPOS_PIN6},      /* EXT1, pin 3 */
     {GPIO_PIN(PA, 7), ADC_INPUTCTRL_MUXPOS_PIN7},      /* EXT1, pin 4 */
-#define ADC_0_CHANNELS                     (2U)
-#define ADC_NUMOF                          ADC_0_CHANNELS
+#define ADC_NUMOF                           ARRAY_SIZE(adc_channels)
+/** @} */

Is this line really needed ?

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/20190930/58cea6ff/attachment.htm>

More information about the notifications mailing list