From c41819ee0fa00a0741388d2b02edb370a1360a30 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 16 Dec 2011 16:17:34 +0000 Subject: Add generic, upper-half PWM driver git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4191 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/arm/src/stm32/stm32_adc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'nuttx/arch/arm/src/stm32/stm32_adc.c') diff --git a/nuttx/arch/arm/src/stm32/stm32_adc.c b/nuttx/arch/arm/src/stm32/stm32_adc.c index a3ccf15d9..b8eac533a 100644 --- a/nuttx/arch/arm/src/stm32/stm32_adc.c +++ b/nuttx/arch/arm/src/stm32/stm32_adc.c @@ -710,16 +710,16 @@ static int adc_interrupt(FAR struct adc_dev_s *dev) adc_receive(dev, priv->current, value); - /* Set the channel number of the next channel that will complete conversion */ + /* Set the channel number of the next channel that will complete conversion */ - if (++priv->current >= priv->nchannels) - { - /* Restart the conversion sequence from the beginning */ -#warning "Is there anything that you have to do to restart the conversion sequence?" + if (++priv->current >= priv->nchannels) + { + /* Restart the conversion sequence from the beginning */ +#warning "Missing logic" /* Reset the index to the first channel to be converted */ - priv->current = 0; + priv->current = 0; } } -- cgit v1.2.3