diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-24 13:23:10 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-08-24 13:23:10 +0000 |
commit | 2d9efb0eafab37e73a9be6280e677f720317d0c3 (patch) | |
tree | a1566c8c32a4bf28c6efefb7d4d9665799276927 /os/hal/ports/STM32 | |
parent | 2804bd065591927fd6f818b1af2d4f32562a9a1c (diff) | |
download | ChibiOS-2d9efb0eafab37e73a9be6280e677f720317d0c3.tar.gz ChibiOS-2d9efb0eafab37e73a9be6280e677f720317d0c3.tar.bz2 ChibiOS-2d9efb0eafab37e73a9be6280e677f720317d0c3.zip |
Fixed bug #527.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7188 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32')
-rw-r--r-- | os/hal/ports/STM32/STM32F30x/adc_lld.c | 2 | ||||
-rw-r--r-- | os/hal/ports/STM32/STM32F30x/adc_lld.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/STM32F30x/adc_lld.c b/os/hal/ports/STM32/STM32F30x/adc_lld.c index 4f84e9a7e..0f0838f12 100644 --- a/os/hal/ports/STM32/STM32F30x/adc_lld.c +++ b/os/hal/ports/STM32/STM32F30x/adc_lld.c @@ -463,7 +463,7 @@ void adc_lld_start_conversion(ADCDriver *adcp) { dmamode = adcp->dmamode;
ccr = grpp->ccr | (adcp->adcc->CCR & (ADC_CCR_CKMODE_MASK |
ADC_CCR_MDMA_MASK));
- cfgr = grpp->cfgr | ADC_CFGR_CONT | ADC_CFGR_DMAEN;
+ cfgr = grpp->cfgr | ADC_CFGR_DMAEN;
if (grpp->circular) {
dmamode |= STM32_DMA_CR_CIRC;
#if STM32_ADC_DUAL_MODE
diff --git a/os/hal/ports/STM32/STM32F30x/adc_lld.h b/os/hal/ports/STM32/STM32F30x/adc_lld.h index 861034d7c..a720f02bb 100644 --- a/os/hal/ports/STM32/STM32F30x/adc_lld.h +++ b/os/hal/ports/STM32/STM32F30x/adc_lld.h @@ -405,8 +405,11 @@ typedef struct { /* End of the mandatory fields.*/
/**
* @brief ADC CFGR register initialization data.
- * @note The bits DMAEN, DMACFG, OVRMOD, CONT are enforced internally
+ * @note The bits DMAEN and DMACFG are enforced internally
* to the driver, keep them to zero.
+ * @note The bits @p ADC_CFGR_CONT or @p ADC_CFGR_DISCEN must be
+ * specified in continuous more or if the buffer depth is
+ * greater than one.
*/
uint32_t cfgr;
/**
|