Did you include the appropriate pins_arduino.h like from hardware/arduino/variants/standard/pins_arduino.h?