some flags for dual-sdr cores.

This commit is contained in:
sorgelig
2019-09-08 08:40:06 +08:00
parent 73d967c29b
commit c3c4e2ea3e
5 changed files with 24 additions and 2 deletions

View File

@@ -605,6 +605,12 @@ int fpga_get_buttons()
return (gpi >> 29) & 3;
}
int fpga_get_io_type()
{
fpga_gpo_write(fpga_gpo_read() | 0x80000000);
return (fpga_gpi_read() >> 28) & 1;
}
void reboot(int cold)
{
sync();