/* Returns the output value set for a GPIO pin using open drain.  */
bool gpio_get_gpio_open_drain_pin_output_value(uint32_t pin)
/* Returns the output value set for a GPIO pin using open drain.  */
bool gpio_get_gpio_open_drain_pin_output_value(uint32_t pin)
{
	volatile avr32_gpio_port_t *gpio_port = &AVR32_GPIO.port[pin >> 5];
	return ((gpio_port->oder >> (pin & 0x1F)) & 1) ^ 1;
}