M.Sameer: It sounds like you are on the right track. To test this, you can modify the following lines in the file
// Old
for (rep=0; rep<10; rep++)
{
for (g=7; g<=11; g++) // Delete
{ // Delete
GPIO_SET = 1<<g; // Delete
sleep(1); // Delete
} // Delete
for (g=7; g<=11; g++) // Delete
{ // Delete
GPIO_CLR = 1<<g; // Delete
sleep(1); // Delete
} // Delete
}
// New
for (rep=0; rep<10; rep++)
{
// Toggle GPIO 7 & 8 concurrently
GPIO_SET = 3<<7; // Added
sleep(1); // Added
GPIO_CLR = 3<<7; // Added
sleep(1); // Added
}
Have a look at the Broadcom 2835 datasheet. There are separate SET and CLEAR registers to control a vector of GPIO. What value you write to these registers will determine which and how many GPIO get set and cleared at the same time. Hope this helps.