Is it possible to make bit operation with alias?
For Toggle led i use this:
void led_toggle(GPIO_TypeDef* GPIOx, uint32_t GPIO_BSRR_BSx )
{
GPIOx->ODR ^= GPIO_BSRR_BSx;
}
but how it works with:
#define PB6 (*((volatile unsigned long *) 0x42218198 ))
PB6^=1; doesnt work