SHARE
TWEET

Untitled

a guest Nov 27th, 2018 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stm32f407xx.h>
  2.  
  3. int main(void)
  4. {
  5.  
  6.         RCC->AHB1ENR |= RCC_AHB1ENR_GPIODEN;
  7.         GPIOD->MODER |= GPIO_MODER_MODE0_0;
  8.         GPIOD->OSPEEDR |= (GPIO_OSPEEDR_OSPEED0);
  9.         GPIOD->OTYPER &= ~(GPIO_OTYPER_OT0);
  10.         GPIOD->PUPDR &= ~(GPIO_PUPDR_PUPD0);
  11.  
  12.         GPIOD->ODR = 1;
  13.         while (1) {
  14.  
  15.         }
  16. }
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
Top