I know this is a relic of your Arduino code... but to save some space and speed, could you add #defines in the defines.h file with the PORT & DDR like what we did here:
	// Smart card program
	#define PORTID_SC_PGM	PORTC6
	#define PORT_SC_PGM		PORTC
	#define DDR_SC_PGM		DDRC