summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_adc.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-16 16:17:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-16 16:17:34 +0000
commitc41819ee0fa00a0741388d2b02edb370a1360a30 (patch)
tree300bc4957f4a2559432a2f6ae680ee6ccd8f3c7c /nuttx/arch/arm/src/stm32/stm32_adc.c
parentb081b723a309bbe18fbbb0f25dbf86c33c2df891 (diff)
downloadpx4-nuttx-c41819ee0fa00a0741388d2b02edb370a1360a30.tar.gz
px4-nuttx-c41819ee0fa00a0741388d2b02edb370a1360a30.tar.bz2
px4-nuttx-c41819ee0fa00a0741388d2b02edb370a1360a30.zip
Add generic, upper-half PWM driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4191 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_adc.c')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_adc.c12
1 files changed, 6 insertions, 6 deletions
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;
}
}