/* General Purpose Input/Outputs Read from a Port. 
Read the current value of the given GPIO port. */
uint8_t gpio_port_read(uint32_t gpioport)
/* General Purpose Input/Outputs Read from a Port. 
Read the current value of the given GPIO port. */
uint8_t gpio_port_read(uint32_t gpioport)
{
	return (uint8_t)GPIO_DATA(gpioport)[GPIO_ALL];
}