summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32
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
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')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_adc.c12
-rw-r--r--nuttx/arch/arm/src/stm32/stm32f10xxx_rcc.c2
2 files changed, 7 insertions, 7 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;
}
}
diff --git a/nuttx/arch/arm/src/stm32/stm32f10xxx_rcc.c b/nuttx/arch/arm/src/stm32/stm32f10xxx_rcc.c
index 947150b9f..15aed029a 100644
--- a/nuttx/arch/arm/src/stm32/stm32f10xxx_rcc.c
+++ b/nuttx/arch/arm/src/stm32/stm32f10xxx_rcc.c
@@ -298,7 +298,7 @@ static inline void rcc_enableapb1(void)
regval |= RCC_APB1ENR_PWREN;
#endif
-#if defined (CONFIG_STM32_DAC1) || defined(CONFIG_STM32_DAC2)
+#if defined(CONFIG_STM32_DAC1) || defined(CONFIG_STM32_DAC2)
/* DAC interface clock enable */
regval |= RCC_APB1ENR_DACEN;