Using DriverLib for GPIO on PORTE
Hi!
I'm trying to get PORTE GPIO2 to simply blink! It works fine if I use PORTF GPIO0 but changing on PORTE it fails. Am I missing something or just done something stupid. The pin simply drives a LED connected to 3.3V for testing.
Used the code for LM3S8962 eval board as base for my LM3S8938 used for testing.
Code looks like the following:
| Code: |
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE);
GPIOPinTypeGPIOOutput(GPIO_PORTE_BASE, GPIO_PIN_2);
GPIOPadConfigSet(GPIO_PORTE_BASE,
GPIO_PIN_2,
GPIO_STRENGTH_2MA,
GPIO_PIN_TYPE_STD_WPU);
GPIOPinWrite(GPIO_PORTE_BASE, GPIO_PIN_2, 1);
while(1)
{
GPIOPinWrite(GPIO_PORTE_BASE, GPIO_PIN_2, 0);
Delay(1000);
GPIOPinWrite(GPIO_PORTE_BASE, GPIO_PIN_2, 1);
Delay(1000);
}
|
Most grateful for any help!
Cheers,
Johan
login or register to reply
|