summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-14 00:34:12 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-14 00:34:12 +0000
commit14205580387ff7d21e5be8efea91e7a92f6fe48e (patch)
tree139d59eb1abc6cf849f401861505aeb69b075294 /nuttx/include
parentc3c84de7ece1bc02227ee922499193fadb611499 (diff)
downloadpx4-nuttx-14205580387ff7d21e5be8efea91e7a92f6fe48e.tar.gz
px4-nuttx-14205580387ff7d21e5be8efea91e7a92f6fe48e.tar.bz2
px4-nuttx-14205580387ff7d21e5be8efea91e7a92f6fe48e.zip
Progress on STM32 ADC driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4173 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/analog/adc.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/include/nuttx/analog/adc.h b/nuttx/include/nuttx/analog/adc.h
index c4c5eba46..e09ce2367 100644
--- a/nuttx/include/nuttx/analog/adc.h
+++ b/nuttx/include/nuttx/analog/adc.h
@@ -4,7 +4,7 @@
* Copyright (C) 2011 Li Zhuoyi. All rights reserved.
* Author: Li Zhuoyi <lzyy.cn@gmail.com>
* History: 0.1 2011-08-04 initial version
- * 0.2 remove ao_read
+ * 0.2 remove ao_read
*
* Derived from include/nuttx/can.h
* Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
@@ -138,13 +138,13 @@ struct adc_ops_s
struct adc_dev_s
{
- uint8_t ad_ocount; /* The number of times the device has been opened */
- uint8_t ad_nrxwaiters; /* Number of threads waiting to enqueue a message */
- sem_t ad_closesem; /* Locks out new opens while close is in progress */
- sem_t ad_recvsem; /* Used to wakeup user waiting for space in ad_recv.buffer */
- struct adc_fifo_s ad_recv; /* Describes receive FIFO */
+ uint8_t ad_ocount; /* The number of times the device has been opened */
+ uint8_t ad_nrxwaiters; /* Number of threads waiting to enqueue a message */
+ sem_t ad_closesem; /* Locks out new opens while close is in progress */
+ sem_t ad_recvsem; /* Used to wakeup user waiting for space in ad_recv.buffer */
+ struct adc_fifo_s ad_recv; /* Describes receive FIFO */
const struct adc_ops_s *ad_ops; /* Arch-specific operations */
- void *ad_priv; /* Used by the arch-specific logic */
+ void *ad_priv; /* Used by the arch-specific logic */
};
/************************************************************************************