aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-24 19:28:13 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-24 19:28:13 +0000
commitb34e50141726a9cbe8e8d8a1b26c7431c3e11ed4 (patch)
treec242053d34091663fe7d51c94adfb51c145f38b6 /os
parent1af4c11ea944cf8e0fd9646758cccf52f3783f33 (diff)
downloadChibiOS-b34e50141726a9cbe8e8d8a1b26c7431c3e11ed4.tar.gz
ChibiOS-b34e50141726a9cbe8e8d8a1b26c7431c3e11ed4.tar.bz2
ChibiOS-b34e50141726a9cbe8e8d8a1b26c7431c3e11ed4.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1322 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/io/io.dox6
-rw-r--r--os/io/platforms/STM32/adc_lld.h5
-rw-r--r--os/io/templates/serial_lld.c8
-rw-r--r--os/io/templates/serial_lld.h2
4 files changed, 18 insertions, 3 deletions
diff --git a/os/io/io.dox b/os/io/io.dox
index d854ae828..0fd14786b 100644
--- a/os/io/io.dox
+++ b/os/io/io.dox
@@ -46,7 +46,11 @@
* The I/O subsystem currently includes support for:
* - @ref PAL.
* - @ref SERIAL.
- * - @ref MAC
+ * - @ref SPI.
+ * - @ref ADC.
+ * - @ref MAC.
+ * - @ref MII.
+ * - @ref MMC.
* .
*/
diff --git a/os/io/platforms/STM32/adc_lld.h b/os/io/platforms/STM32/adc_lld.h
index bbb4faef0..d6fe8948f 100644
--- a/os/io/platforms/STM32/adc_lld.h
+++ b/os/io/platforms/STM32/adc_lld.h
@@ -74,6 +74,9 @@
/* Driver constants. */
/*===========================================================================*/
+#define ADC_CR2_EXTSEL_SRC(n) (n << 17) /**< @brief Trigger source. */
+#define ADC_CR2_EXTSEL_SWSTART (7 << 17) /**< @brief Software trigger. */
+
#define ADC_CHANNEL_IN0 0 /**< @brief External analog input 0. */
#define ADC_CHANNEL_IN1 1 /**< @brief External analog input 1. */
#define ADC_CHANNEL_IN2 2 /**< @brief External analog input 2. */
@@ -90,7 +93,7 @@
#define ADC_CHANNEL_IN13 13 /**< @brief External analog input 13. */
#define ADC_CHANNEL_IN14 14 /**< @brief External analog input 14. */
#define ADC_CHANNEL_IN15 15 /**< @brief External analog input 15. */
-#define ADC_CHANNEL_SENSOR 16 /**< @brief Internal temp. sensor. */
+#define ADC_CHANNEL_SENSOR 16 /**< @brief Internal temperature sensor.*/
#define ADC_CHANNEL_VREFINT 17 /**< @brief Internal reference. */
#define ADC_SQR1_NUM_CH(n) (n << 20)
diff --git a/os/io/templates/serial_lld.c b/os/io/templates/serial_lld.c
index 505a80378..8e2ba707e 100644
--- a/os/io/templates/serial_lld.c
+++ b/os/io/templates/serial_lld.c
@@ -32,6 +32,14 @@ static const SerialDriverConfig default_config = {
};
/*===========================================================================*/
+/* Low Level Driver exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Low Level Driver local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
/* Low Level Driver local functions. */
/*===========================================================================*/
diff --git a/os/io/templates/serial_lld.h b/os/io/templates/serial_lld.h
index 5688368e4..098fc5403 100644
--- a/os/io/templates/serial_lld.h
+++ b/os/io/templates/serial_lld.h
@@ -32,7 +32,7 @@
/*===========================================================================*/
/*===========================================================================*/
-/* Unsupported event flags and custom events. */
+/* Driver constants. */
/*===========================================================================*/
/*===========================================================================*/