diff --git a/bsp/ls2kdev/drivers/drv_gpio.c b/bsp/ls2kdev/drivers/drv_gpio.c index e1c5d61331..155807461f 100644 --- a/bsp/ls2kdev/drivers/drv_gpio.c +++ b/bsp/ls2kdev/drivers/drv_gpio.c @@ -73,7 +73,7 @@ static int loongson_pin_read(struct rt_device *device, rt_base_t pin) gpio = (void *)device->user_data; rt_uint64_t m; - m = gpio->GPIO1_I; + m = gpio->GPIO0_I; m &= (rt_uint64_t)1 << pin; rc = !!m;