aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/lisa-m-2/adc_regular
diff options
context:
space:
mode:
authorStephen Dwyer2012-10-07 17:53:09 -0600
committerStephen Dwyer2012-10-07 17:53:09 -0600
commit2b8fbfc433fe75efaa323d0b085e6d54a1221975 (patch)
tree8f7d0eb3367a6266faf1f45ab87fa6f0d9e21ad6 /examples/stm32/f1/lisa-m-2/adc_regular
parent794f3fbeda3ec1dc7de1b9023eef44e4169a7ea1 (diff)
updated the lisa_m_2 (STM32 F1) ADC examples for recent code changes to stm32f1 adc.c and adc.h
Diffstat (limited to 'examples/stm32/f1/lisa-m-2/adc_regular')
-rw-r--r--examples/stm32/f1/lisa-m-2/adc_regular/adc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32/f1/lisa-m-2/adc_regular/adc.c b/examples/stm32/f1/lisa-m-2/adc_regular/adc.c
index f6442b1..9bbbe03 100644
--- a/examples/stm32/f1/lisa-m-2/adc_regular/adc.c
+++ b/examples/stm32/f1/lisa-m-2/adc_regular/adc.c
@@ -143,9 +143,9 @@ int main(void)
adc_start_conversion_direct(ADC1);
/* Wait for end of conversion. */
- while (!(ADC_SR(ADC1) & ADC_SR_EOC));
+ while (!(adc_eoc(ADC1)));
- temperature = ADC_DR(ADC1);
+ temperature = adc_read_regular(ADC1);
/*
* That's actually not the real temperature - you have to compute it