Arduino IDE compatibility with ATmega2561

How can i know if i set on/off the internal pull up resistor ?

Sorry but I can't post the code for now. The code work perfect with the Atmega328P so i think's it's a problems of configuration.

Thx a lot