ATMEL Mega1284P evaluation board avalible

You use the Arduino pin number for SS_PIN.

So this will set the SS pin high in output mode.

pinMode(SS_PIN, OUTPUT);
digitalWrite(SS_PIN, HIGH);

Same for SCK_PIN, MISO_PIN, and MOSI_PIN.