Hi.
I would like to use bit-banding feature in SRAM, but don't know exactly how to implement it with C. I already use bit-banding in peripheral region with this kind of macro:
#define BITBAND_PERI_REF 0x40000000
#define BITBAND_PERI_BASE 0x42000000
#define BITBAND_PERI(a,b) ((BITBAND_PERI_BASE + (a - BITBAND_PERI_REF) * 32 + (b * 4)))
But I am confused how to connect bit-banding with some random word (half-word or byte) in SRAM, where separate bits could represent some statuses.
Thank you for your help.
View all questions in Cortex-M / M-Profile forum