[riot-notifications] [RIOT-OS/RIOT] Vrefint stm32l1 (#7657)

Alexandre Abadie notifications at github.com
Sat Sep 30 18:23:33 CEST 2017


The ADC interface in RIOT is common to all supported MCU so it's possible that some features of a given MCU are missing. I'm not an expert with ADC but I'll try to answer for the STM32L1.

> How can I improve the reading of the adc for DC values?

You can only tweak the ADC resolution. See available values [here](https://github.com/RIOT-OS/RIOT/blob/master/cpu/stm32l1/include/periph_cpu.h#L56) for this CPU.

> Where do I change the sampling rate of the adc?

I'm not sure, but I would say that this is [hard coded in the driver](https://github.com/RIOT-OS/RIOT/blob/master/cpu/stm32l1/periph/adc.c#L33). Correct me if I'm wrong.
If true, maybe this is something that could be defined in the board configuration and if not defined here use this default value there.

> Where should I implement the function to enable vrefint on the board?

This should be done in the board configuration normally. You have an example for Modtronic [NZ32-SC151](https://github.com/RIOT-OS/RIOT/blob/master/boards/nz32-sc151/include/periph_conf.h#L233) board.

Hope this helps.


-- 
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/7657#issuecomment-333319246
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20170930/1029c725/attachment.html>


More information about the notifications mailing list