AnsweredAssumed Answered

Confused about GPIOA->CRL

Question asked by hobb.epy on Jan 16, 2016
Latest reply on Jan 16, 2016 by Clive One
hello I am using STM32Nuleo103 and keil compiler.
I was configuring GPIOA->CRL register. I found following

GPIOA->CRL = oxooooooo8;          //works
GPIOA->CRL |= oxooooooo8;          //Not works

I am confused i am just doing ORing with the CRL register to avoid modifying other pins configuration. But i tried to do so, i found second assignment doesn't work but first work.

How to avoid this?