66. Pointer-iv

Question.1

A developer accesses a GPIO output register at address 0x40020014:

uint32_t *gpio_odr = (uint32_t *)0x40020014;
*gpio_odr |= (1U << 5);  // Set pin 5 high

Will this correctly set GPIO pin 5?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!