Hi there,
I have a query about the bit banding technique. Can anybody explain me what the following line of code doing
for(ui32Idx = 0; ui32Idx < 32; ui32Idx++)
{
//
// Set this bit.
//
HWREGBITW(&g_ui32Value, 31 - ui32Idx) = (0xdecafbad >> (31 - ui32Idx)) & 1;
UARTprintf("\r%08x", g_ui32Value);
}
I really don't understand how I am getting the "decafbad" after 32 iteration. Can anybody explain me about the HWREGBITW micro.
Regards,,
Mohsin