Some minor fixes.

This commit is contained in:
sorgelig
2018-06-25 01:23:19 +08:00
parent 2e058b957f
commit 0c1eff9334
4 changed files with 9 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ static int spi_open(int speed, int mode)
return -1;
}
static int spi_close()
static void spi_close()
{
if(spiFd >= 0) close(spiFd);
spiFd = -1;

View File

@@ -2198,6 +2198,8 @@ int input_poll(int getchar)
user_io_digital_joystick(i, af[i] ? joy[i] & ~autofire[i] : joy[i], newdir);
}
}
return 0;
}
int is_key_pressed(int key)

View File

@@ -1126,9 +1126,9 @@ void tos_config_init(void)
{
// set default values
config.system_ctrl = TOS_MEMCONFIG_4M | TOS_CONTROL_BLITTER;
memcpy(config.tos_img, "TOS.IMG", 12);
strcpy(config.tos_img, "TOS.IMG");
config.cart_img[0] = 0;
memcpy(config.acsi_img[0], "HARDDISK.HD", 12);
strcpy(config.acsi_img[0], "HARDDISK.HD");
config.acsi_img[1][0] = 0;
config.video_adjust[0] = config.video_adjust[1] = 0;

View File

@@ -2121,6 +2121,9 @@ static int findPLLpar(double Fout, uint32_t *pc, uint32_t *pm, double *pko)
return 1;
}
}
//will never reach here
return 0;
}
static void setPLL(double Fout)
@@ -2173,7 +2176,7 @@ static void setPLL(double Fout)
vitems[20] = k;
}
static int setVideo()
static void setVideo()
{
printf("Send HDMI parameters:\n");
spi_uio_cmd_cont(UIO_SET_VIDEO);