This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GPIOPinConfigure() parameter

this is the code I am using to generate PWM on pin PF1 using timer. 

It is giving following errors on line GPIOPinConfigure(GPIO_PF1_T0CCP1) as ::

1)'GPIO_PF1_T0CCP1' undeclared 

2)Symbol 'GPIO_PF1_T0CCP1' could not be resolved

#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/hw_timer.h"
#include "inc/hw_ints.h"
#include "inc/hw_gpio.h"
#include "driverlib/timer.h"
#include "driverlib/interrupt.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "utils/uartstdio.h"
#include "driverlib/pin_map.h"

#define PART_LM4F120H5QR

int main(void)
{
SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ);

// The TIMER0 peripheral must be enabled for use.

SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0);

//
// For this example CCP1 is used with port F pin 1.
// GPIO port F needs to be enabled so these pins can be used.
//

SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);

GPIOPinTypeTimer(GPIO_PORTF_BASE, GPIO_PIN_1);

GPIOPinConfigure(GPIO_PF1_T0CCP1);

TimerConfigure(TIMER0_BASE, TIMER_CFG_16_BIT_PAIR | TIMER_CFG_B_PWM);

TimerLoadSet(TIMER0_BASE, TIMER_B, 50000);
TimerEnable(TIMER0_BASE, TIMER_B);

TimerMatchSet(TIMER0_BASE, TIMER_B, 45000);

while(1)

{

}

}

But if I use hexadecimal value directly from library like this GPIOPinConfigure(0x00050407) instead of GPIOPinConfigure(GPIO_PF1_T0CCP1) it works fine.