/* Read the statu of the Port choosed. Parameters: port: use to choose a I/O port among Port A, B, or C. return: the value of the corresponding Port.  */
int32_t gpio_read(uint32_t *value)
/* Read the statu of the Port choosed. Parameters: port: use to choose a I/O port among Port A, B, or C. return: the value of the corresponding Port.  */
int32_t gpio_read(uint32_t *value)
{
    *value = gpio_control_reg->EXT_PORTA;
    return 0;
}