Fix the GPI flag.

This commit is contained in:
sorgelig
2017-06-24 02:29:18 +08:00
parent a1853ebf74
commit 644719528f
2 changed files with 2 additions and 2 deletions

View File

@@ -540,7 +540,7 @@ uint32_t fpga_gpo_read()
return gpo_copy; //readl((void*)(SOCFPGA_MGR_ADDRESS + 0x10));
}
uint32_t fpga_gpi_read()
int fpga_gpi_read()
{
return readl((void*)(SOCFPGA_MGR_ADDRESS + 0x14));
}

View File

@@ -14,7 +14,7 @@ int fpga_io_init();
void fpga_gpo_write(uint32_t value);
uint32_t fpga_gpo_read();
uint32_t fpga_gpi_read();
int fpga_gpi_read();
void fpga_set_led(uint32_t on);
int fpga_get_buttons();