git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1322 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2009-11-24 19:28:13 +00:00
parent 1af4c11ea9
commit b34e501417
4 changed files with 18 additions and 3 deletions

View File

@ -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.
* .
*/

View File

@ -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)

View File

@ -31,6 +31,14 @@
static const SerialDriverConfig default_config = {
};
/*===========================================================================*/
/* Low Level Driver exported variables. */
/*===========================================================================*/
/*===========================================================================*/
/* Low Level Driver local variables. */
/*===========================================================================*/
/*===========================================================================*/
/* Low Level Driver local functions. */
/*===========================================================================*/

View File

@ -32,7 +32,7 @@
/*===========================================================================*/
/*===========================================================================*/
/* Unsupported event flags and custom events. */
/* Driver constants. */
/*===========================================================================*/
/*===========================================================================*/