[riot-notifications] [RIOT-OS/RIOT] Is ADC driver implemented for SAMD21G18A? (#16267)

Ichiro Kuroki notifications at github.com
Thu Apr 1 10:28:53 CEST 2021


Hi @jeandudey. After following your advice, I got new errors:

/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c:90:9: error: 'ADC_REF_DEFAULT' undeclared (first use in this function)
   90 |     if (ADC_REF_DEFAULT == ADC_REFCTRL_REFSEL_INT1V) {
      |         ^~~~~~~~~~~~~~~
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c:90:9: note: each undeclared identifier is reported only once for each function it appears in
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c: In function '_setup_clock':
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c:113:26: error: 'ADC_PRESCALER' undeclared (first use in this function)
  113 |     ADC_DEV->CTRLB.reg = ADC_PRESCALER;
      |                          ^~~~~~~~~~~~~
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c: In function '_adc_configure':
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c:221:28: error: 'ADC_REF_DEFAULT' undeclared (first use in this function)
  221 |     ADC_DEV->REFCTRL.reg = ADC_REF_DEFAULT;
      |                            ^~~~~~~~~~~~~~~
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c: In function 'adc_init':
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c:245:17: error: 'ADC_NUMOF' undeclared (first use in this function); did you mean 'DAC_NUMOF'?
  245 |     if (line >= ADC_NUMOF) {
      |                 ^~~~~~~~~
      |                 DAC_NUMOF
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c:251:15: error: 'adc_channels' undeclared (first use in this function)
  251 |     gpio_init(adc_channels[line].pin, GPIO_IN);
      |               ^~~~~~~~~~~~
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c: In function 'adc_sample':
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c:260:17: error: 'ADC_NUMOF' undeclared (first use in this function); did you mean 'DAC_NUMOF'?
  260 |     if (line >= ADC_NUMOF) {
      |                 ^~~~~~~~~
      |                 DAC_NUMOF
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c:274:30: error: 'adc_channels' undeclared (first use in this function)
  274 |                            | adc_channels[line].muxpos
      |                              ^~~~~~~~~~~~
/home/ichiro/Documents/projects/RIOT/cpu/sam0_common/periph/adc.c:275:30: error: 'ADC_NEG_INPUT' undeclared (first use in this function)
  275 |                            | ADC_NEG_INPUT;



-- 
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/issues/16267#issuecomment-811743219
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210401/f59d3013/attachment.htm>


More information about the notifications mailing list