diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-30 13:20:06 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-30 13:20:06 +0000 |
commit | 0403ccfd10fc6b424be4a4aea8196c9038b64a38 (patch) | |
tree | f3ae5434ceac305341ccb88caeec6d2a0d826aff /os/hal/platforms/STM32F3xx/adc_lld.h | |
parent | 354300b734c4a5af98d47d2d29ef99cd2d1ae742 (diff) | |
download | ChibiOS-0403ccfd10fc6b424be4a4aea8196c9038b64a38.tar.gz ChibiOS-0403ccfd10fc6b424be4a4aea8196c9038b64a38.tar.bz2 ChibiOS-0403ccfd10fc6b424be4a4aea8196c9038b64a38.zip |
Various ADC fixes, not tested yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4997 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F3xx/adc_lld.h')
-rw-r--r-- | os/hal/platforms/STM32F3xx/adc_lld.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F3xx/adc_lld.h b/os/hal/platforms/STM32F3xx/adc_lld.h index 6e78d003a..140033a77 100644 --- a/os/hal/platforms/STM32F3xx/adc_lld.h +++ b/os/hal/platforms/STM32F3xx/adc_lld.h @@ -94,6 +94,10 @@ * @name CFGR register configuration helpers
* @{
*/
+#define ADC_CFGR_DMACFG_MASK (1 << 1)
+#define ADC_CFGR_DMACFG_ONESHOT (0 << 1)
+#define ADC_CFGR_DMACFG_CIRCULAR (1 << 1)
+
#define ADC_CFGR_RES_MASK (3 << 3)
#define ADC_CFGR_RES_12BITS (0 << 3)
#define ADC_CFGR_RES_10BITS (1 << 3)
|