Guest User

Untitled

a guest
Jul 20th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stm32f1xx.h>
  2.  
  3. int main(int argc, char *argv[])
  4. {
  5. RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;
  6. GPIOC->CRH &= ~(GPIO_CRH_MODE13_Msk | GPIO_CRH_CNF13_Msk);
  7. GPIOC->CRH |= (GPIO_CRH_MODE13_0);
  8.  
  9. while (1) {
  10. for (volatile int i = 0; i < 100000; i++)
  11. ;
  12.  
  13. GPIOC->ODR ^= (1 << 13);
  14. }
  15. }
Add Comment
Please, Sign In to add comment