diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-30 17:56:41 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-30 17:56:41 +0000 |
commit | 96fb9a85dfe9d3779baed9de1d4a7d5f857810dc (patch) | |
tree | 14aff92f8721c4a89ded06ad028207968d95e896 /os/hal | |
parent | c4dcbb3e9881654b9c4d96837a994ce305ab4d35 (diff) | |
download | ChibiOS-96fb9a85dfe9d3779baed9de1d4a7d5f857810dc.tar.gz ChibiOS-96fb9a85dfe9d3779baed9de1d4a7d5f857810dc.tar.bz2 ChibiOS-96fb9a85dfe9d3779baed9de1d4a7d5f857810dc.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5000 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM32F3xx/adc_lld.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/platforms/STM32F3xx/adc_lld.c b/os/hal/platforms/STM32F3xx/adc_lld.c index e661b4b9c..35960d84d 100644 --- a/os/hal/platforms/STM32F3xx/adc_lld.c +++ b/os/hal/platforms/STM32F3xx/adc_lld.c @@ -152,14 +152,14 @@ static void adc_lld_analog_off(ADCDriver *adcp) { */
static void adc_lld_calibrate(ADCDriver *adcp) {
- chDbgAssert(adcp->adcm->CR == 0, "adc_lld_calibrate(), #1",
- "invalid register state");
+ chDbgAssert(adcp->adcm->CR == ADC_CR_ADVREGEN_0, "adc_lld_calibrate(), #1",
+ "invalid register state");
adcp->adcm->CR |= ADC_CR_ADCAL;
while ((adcp->adcm->CR & ADC_CR_ADCAL) != 0)
;
#if STM32_ADC_DUAL_MODE
- chDbgAssert(adcp->adcs->CR == 0, "adc_lld_calibrate(), #2",
- "invalid register state");
+ chDbgAssert(adcp->adcs->CR == ADC_CR_ADVREGEN_0, "adc_lld_calibrate(), #2",
+ "invalid register state");
adcp->adcs->CR |= ADC_CR_ADCAL;
while ((adcp->adcs->CR & ADC_CR_ADCAL) != 0)
;
|