Error Compiling Blink sample

Why would you name a variable that holds a pin number "statep1"? Do you plan to store the state of the pin in "pinp1"?

Why are you setting the mode of the pin to FUNCTION_3? Where the hell is that defined?