提交 9d742141 编写于 作者: M michael

bsp:ls2k:gpio read typo error,fix it.

from ls2k user manuanl know that GPIO0_I is input, GPIO1_I is reserved.
here typo error, fix it.
上级 b4f75d1e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册