+1
0
-1

How to access Register pin value from defined address through its member

Hi,
We are trying to test below function :
void SET_BLE()
{
GPIOJ->BSRR = GPIO_PIN_15;
}
where,
GPIOJ->BSRR is ((GPIO_TypeDef *) ((0x40000000U...

Posting in: 

1 Answers:

+1
0
-1

Hello,

The normal unit prefix user code for that is.

#include "MacroGuardedHeaderWhereGPIOJIs"

#undef GPIOJ

#define GPIOJ (&VCAST_GPIOJ)

GPIO_TypeDEF...