SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     ADC_OK = 0;
  2.     ADC_SetActiveChannel(&hadc1, ADC_CHANNEL_0); HAL_ADC_Start(&hadc1);
  3.     while(ADC_OK == 0) {
  4.         if(HAL_ADC_PollForConversion(&hadc1, 10) == HAL_OK) {
  5.             ADC_OK = 1;
  6.             ADC_TAB[0] = HAL_ADC_GetValue(&hadc1);
  7.         }
  8.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top