Code: Select all
static IOBus bus_data = {
GPIOA, //IOBus will contain pins of GPIOA
8, // Bus width is to be 8 bits
0, // No offset from the least significant bit.. meaning the lower 8 bits are to be used ??????????
};
then, in the main function, i used the following instruction to get an alternating bit pattern on GPIOA port:
Code: Select all
palWriteBus(&bus_data,0b10101010);
This code is not working.... I am not too sure about the IOBus configuration.. Can someone tell me what's wrong??