logo

Crowdly

Browser

Add to Chrome

The following macro can be used to set/reset GPIO port D pin 1 (PD1).   #defin...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

The following macro can be used to set/reset GPIO port D pin 1 (PD1).

  #define PD1(x) (*((volatile uint32_t*)(GPIOD_BASE+0x08))=x<<1)

PD12 is a macro that would ret/reset both pins PD1 and PD2.

  #define PD12(x) (*((volatile uint32_t*)(GPIOD_BASE+0xnn))=x<<m)

where nn is a hexdecimal number and m is an integer.

What are the values of 0xnn and m?

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on distance3.sg.digipen.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome