Re: [libopenstm32-devel] adc+dma example
Status: Inactive
Brought to you by:
uh1763
From: Linus C. <li...@li...> - 2010-08-15 20:03:40
|
I'm new to this... I added: /* without this the dma interrupt routine will never be called */ nvic_enable_irq(NVIC_DMA1_CHANNEL1_IRQ); nvic_set_priority(NVIC_DMA1_CHANNEL1_IRQ, 2); in the main function so that void dma1_channel1_isr() interrupt is called. :) On Sat, Aug 14, 2010 at 10:01 AM, Linus Casassa <li...@li...> wrote: > Hi Tommi > > This example is just what I need! Thank you! > > I have a question: Why did you call adc_setup() twice in your ADC+DMA example? > > On Sat, Aug 14, 2010 at 9:58 AM, Linus Casassa <li...@li...> wrote: >> Hello, >> >> I've created an ADC+DMA example. It needs some changes/advancements to >> the lib from my git repository. >> It reads out 3 ADC channels (3d accel sensor) and put the converted >> values per dma to an array. The array is shiftet out via USART1. >> >> Example is attached. >> >> cu Tommi >> > > > > -- > Linus Casassa > Estudiante Ingeniería Civil Electrónica > Universidad Técnica Federico Santa María > Fono: 56-9-97776941 > -- Linus Casassa Estudiante Ingeniería Civil Electrónica Universidad Técnica Federico Santa María Fono: 56-9-97776941 |