fix gpio_read function by replacing PDSR with ODSR register