Page 1 of 1

Example for using DMA for ADC

Posted: Fri Sep 23, 2016 2:06 pm
by arun_1990
Hello All,

I am very new to Chibios. Can anyone please provide me an example code to use DMA for reading ADC values? I am using STM32F4-Discovery board.

thanks in advance.

Kind Regards,
Arun

Re: Example for using DMA for ADC

Posted: Fri Sep 23, 2016 4:32 pm
by Dwar
http://wiki.chibios.org/dokuwiki/doku.p ... _discovery

"This article will explain how to get started with the recently released STM32F4-Discovery board using ChibiOS/RT. This board is really cheap (below 20$) and is an excellent evaluation platform for the STMicroelectronics Hi-Performance & DSP STM32F4 family."

Re: Example for using DMA for ADC

Posted: Fri Sep 23, 2016 7:22 pm
by Giovanni
Hi,

All ChibiOS HAL drivers use DMA internally when applicable, this includes the ADC driver.

You don't need to do anything special, just use the ADC driver, it is able of very high performance.

Giovanni