updated the lisa_m_2 (STM32 F1) ADC examples for recent code changes to stm32f1 adc.c and adc.h

This commit is contained in:
Stephen Dwyer
2012-10-07 17:53:09 -06:00
parent 794f3fbeda
commit 2b8fbfc433
5 changed files with 24 additions and 24 deletions

View File

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