This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Defining a variable in the bit-band area

I wonder to know is there anyone who define a variable in bit-band area in c programming language for cortex-M3.

I have followed the compiler attribute based on the below link
www.keil.com/.../armcc_chr1359124215827.htm
but when I check the address range, it has been defined out of the scope of bit-banding and it seems the attribute doesn't effect the code even if I use this code __attribute__((at())) ?

As far as I know bit-banded area map each bit into 8 bit if we write 0b00000001 into the 8 bit the corresponding bit become one and vice versa but what I want to know is, it has been said that bit-banded area help us to toggle bit in a atomic way (what I'm looking for) ,how could be accomplished !?