From b34e50141726a9cbe8e8d8a1b26c7431c3e11ed4 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 24 Nov 2009 19:28:13 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1322 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/io/io.dox | 6 +++++- os/io/platforms/STM32/adc_lld.h | 5 ++++- os/io/templates/serial_lld.c | 8 ++++++++ os/io/templates/serial_lld.h | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) (limited to 'os') 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 @@ -31,6 +31,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. */ /*===========================================================================*/ /*===========================================================================*/ -- cgit v1.2.3