From SPMU363:
13.2.1.50 ROM_GPIOPinWrite
Description:
Writes the corresponding bit values to the output pin(s) specified by ui8Pins. Writing to a pin
configured as an input pin has no effect. (emphasis added)
-----------------------------------------------------------------------------------------------------------------
From pinout.c in the Tivaware driver code:
//
// PJ0 and J1 are used for user buttons
//
ROM_GPIOPinTypeGPIOInput(GPIO_PORTJ_BASE, GPIO_PIN_0 | GPIO_PIN_1);
ROM_GPIOPinWrite(GPIO_PORTJ_BASE, GPIO_PIN_0 | GPIO_PIN_1, 0);
-------------------------------------------------------------------------------------------------------------------------------
Is there some undocumented reason for trying to set a register on an input pin, or is this just a cut and paste error? Why does the library code have a line of code that should do nothing?
Thanks.
Ray