提交 772003e4 编写于 作者: M Markus Brunner 提交者: Stefan Roese

fix taihu soft spi_read

The taihu board used gpio_read_out_bit which reads the output register and not
the pin state.
Signed-off-by: NMarkus Brunner <super.firetwister@gmail.com>
上级 fc84a849
......@@ -162,7 +162,7 @@ void spi_sda(int bit)
unsigned char spi_read(void)
{
return (unsigned char)gpio_read_out_bit(SPI_DIN_GPIO15);
return (unsigned char)gpio_read_in_bit(SPI_DIN_GPIO15);
}
void taihu_spi_chipsel(int cs)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册