Asking help about Arduino board for FDM program!

Hi experts:

I met a problem when I explant my code(which runs normal with Mega2560 for Ultimaker) . I know that Due board is
32-bit chip and Mega2560 is 8-bit chip, some definition for pins is diferent, some definition need to be modified. But what
kind of hardware type can I chosed? For example, in Mega2560, the hardware type defined as :
#ifndef AVR_ATmega1280
#ifndef AVR_ATmega2560
#error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
#endif
#endif

The code is insisting it be compiled for the Mega2560, because its not portable.

So you'll need to start adding conditionally compiled code for the parts that
have to be changed for the Due - including that #error

You understand C-preprocessor directives?

OK, I see, and now I am just trying to solve it by a new project.

Thank you so much!