diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-26 11:24:52 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-26 11:24:52 +0000 |
commit | 6e2f377dd5b17c3ab2836a5ae5406676275f9bb5 (patch) | |
tree | d8012df76077d3733ae01b164818f946acddb52a /os/hal/platforms/STM32F0xx/adc_lld.h | |
parent | 512b78de728dfa1fe6bacadc525c8edc1dfdb041 (diff) | |
download | ChibiOS-6e2f377dd5b17c3ab2836a5ae5406676275f9bb5.tar.gz ChibiOS-6e2f377dd5b17c3ab2836a5ae5406676275f9bb5.tar.bz2 ChibiOS-6e2f377dd5b17c3ab2836a5ae5406676275f9bb5.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4235 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F0xx/adc_lld.h')
-rw-r--r-- | os/hal/platforms/STM32F0xx/adc_lld.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32F0xx/adc_lld.h b/os/hal/platforms/STM32F0xx/adc_lld.h index 3be5a053c..31029f31c 100644 --- a/os/hal/platforms/STM32F0xx/adc_lld.h +++ b/os/hal/platforms/STM32F0xx/adc_lld.h @@ -264,6 +264,14 @@ struct ADCDriver { /* Driver macros. */
/*===========================================================================*/
+/**
+ * @brief Changes the value of the ADC CCR register.
+ * @details Use this function in order to enable or disable the internal
+ * analog sources. See the documentation in the STM32F0xx Reference
+ * Manual.
+ */
+#define adcSTM32SetCCR(ccr) (ADC->CCR = (ccr))
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
@@ -280,8 +288,6 @@ extern "C" { void adc_lld_stop(ADCDriver *adcp);
void adc_lld_start_conversion(ADCDriver *adcp);
void adc_lld_stop_conversion(ADCDriver *adcp);
- void adcSTM32EnableTSVREFE(void);
- void adcSTM32DisableTSVREFE(void);
#ifdef __cplusplus
}
#endif
|