This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

help understanding a few lines of code

hey so I'm having some trouble understand 3 fairly simple lines of code configuring some port D pins i know somehow they are supposed to make pins 0-3 and 8-15 as 2MHz low speed outputs with a pull-up resistor on pin 0 but after looking thru the c and h files I'm just not sure how to get to that conclusion can someone help me out please?

GPIO->OSPEEDR = 0xFF00;
GPIO->PUPDR = 0x1;
GPIO->MODER = 0x5555;

Thank you!

0