/* Drives a GPIO pin to 0 using open drain.  */
void gpio_clr_gpio_open_drain_pin(uint32_t pin)
/* Drives a GPIO pin to 0 using open drain.  */
void gpio_clr_gpio_open_drain_pin(uint32_t pin)
{
	volatile avr32_gpio_port_t *gpio_port = &AVR32_GPIO.port[pin >> 5];
	gpio_port->ovrc  = 1 << (pin & 0x1F);
	gpio_port->oders = 1 << (pin & 0x1F);
	gpio_port->gpers = 1 << (pin & 0x1F);
}