mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
OP-269 PIOS/ADC: Only enable the half and full conversion flag for the double
buffering git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2451 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
75a6b406cd
commit
ad7a6e6071
@ -152,7 +152,8 @@ void PIOS_ADC_Config(uint32_t oversampling)
|
||||
DMA_Cmd(pios_adc_devs[0].cfg->dma.rx.channel, ENABLE);
|
||||
|
||||
/* Trigger interrupt when for half conversions too to indicate double buffer */
|
||||
DMA_ITConfig(pios_adc_devs[0].cfg->dma.rx.channel, pios_adc_devs[0].cfg->dma.irq.flags, ENABLE);
|
||||
DMA_ITConfig(pios_adc_devs[0].cfg->dma.rx.channel, DMA_IT_TC, ENABLE);
|
||||
DMA_ITConfig(pios_adc_devs[0].cfg->dma.rx.channel, DMA_IT_HT, ENABLE);
|
||||
|
||||
/* Configure DMA interrupt */
|
||||
NVIC_Init(&pios_adc_devs[0].cfg->dma.irq.init);
|
||||
|
Loading…
x
Reference in New Issue
Block a user