amrith

Untitled

Jan 15th, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include"stdint.h"
  2. #include "stm32f407xx.h"
  3.  
  4. int main(void)
  5. {
  6.     ADC_TypeDef *pADC;
  7.     RCC_TypeDef *pRCC;
  8.     pADC=ADC1;
  9.     pRCC=RCC;
  10.     pRCC->APB2ENR=  pRCC->APB2ENR|(1<<8);
  11.     pADC->CR1=0x55;
  12.     return 0;
  13.    
  14. }
Add Comment
Please, Sign In to add comment