Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int READ_ADC()
- {
- ADC_SoftwareStartConv(ADC1);//Start the conversion
- while(!ADC_GetFlagStatus(ADC1, ADC_FLAG_EOC));//Processing the conversion
- return ADC_GetConversionValue(ADC1); //Return the converted data
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement