Write directly to Port C

I'd like to write 16bits to port C in the shortest amount of cycles possible. It would go into PC1 through PC16. PC0 is used as external erase button. How do I do that? I'm trying to port from AVR code. My function I used on AVR was like this:

void WriteBus(byte H,byte L)
{
    PORTA=H;
    PORTC=L;
}

Any help is appreciated. Thank you in advance. RI

Suggest look at the implementation of PIO_SetOutput() in hardware/arduino/sam/system/libsam/source/pio.c, its what digitalWrite uses.

Thanks.
I actually found out the solution after reading the datasheet more carefully.
I was setting the wrong bits.

	PIOC->PIO_OWDR = 0xFFFE0001;
	PIOC->PIO_ODSR = H<<9 | L<<1;