Tool/software: Code Composer Studio
I'm quite new to ccs and embedded systems. I'm trying to steer my way through the examples from the control suite
in the following example pertaining to gpio setup -
i couldn't quite understand the conditions used in the if operator . could you please help me out or if not guide me to few proper resources, where I could get a grasp of the topic.
i
gpioBaseAddr = (Uint32 *)&GpioCtrlRegs;
for (regOffset = 0; regOffset < sizeof(GpioCtrlRegs)/2; regOffset++)
{
//
//Hack to avoid enabling pull-ups on all pins. GPyPUD is offset
//0x0C in each register group of 0x40 words. Since this is a
//32-bit pointer, the addresses must be divided by 2.
//
if (regOffset % (0x40/2) != (0x0C/2))
{
gpioBaseAddr[regOffset] = 0x00000000;
}
}