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

Kees Bakker notifications at github.com
Mon Sep 30 22:33:14 CEST 2019


keestux commented on this pull request.



>  
 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)
+/** @} */

No, I'll remove the duplicate

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12291#discussion_r329773188
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190930/93a0054e/attachment.htm>


More information about the notifications mailing list