Hi,
We are working with TM4C1294 in many projects, and in one of the project we need to read multiple digital inputs, we have tested it with reading each individual pin, but for the smaller code and faster execution need
we want to read entire GPIO PORT
WE are working with reading pins and it works but instead of this
pin_data[0] = GPIOPinRead(GPIO_PORTD_BASE, GPIO_PIN_0);
pin_data[1] = GPIOPinRead(GPIO_PORTD_BASE, GPIO_PIN_1);
pin_data[2] = GPIOPinRead(GPIO_PORTD_BASE, GPIO_PIN_2);
pin_data[3] = GPIOPinRead(GPIO_PORTD_BASE, GPIO_PIN_3);
pin_data[4] = GPIOPinRead(GPIO_PORTD_BASE, GPIO_PIN_4);
pin_data[5] = GPIOPinRead(GPIO_PORTD_BASE, GPIO_PIN_5);
pin_data[6] = GPIOPinRead(GPIO_PORTD_BASE, GPIO_PIN_6);
pin_data[7] = GPIOPinRead(GPIO_PORTD_BASE, GPIO_PIN_7);
Something like below line is required , and for this there is no function found in library.
Port_Data = GPIOPortRead(GPIO_PORTD);
Please Help
Regards
Khodidas Domadiya