Perhaps I'm missing out on something but I can not find the way to set pull up or pull down resistors on the xmega.
Let's say I want to configure port B to have all pins as inputs and pull them low. Let's assume they pins are not inputs by default
PORTB.DIRCLR = 0xFF; // Set all pins to inputs
If I would like to set a pull down resistor on a specific pin, say 2, I would do this:
PORTB.PIN2CTRL = PORT_OPC_PULLDOWN_gc;
But let's say I want to pull down all the port. How can I do that?