[MODEM] recv tune. set small callback_cycles to recv fllowing data quickly.

This commit is contained in:
Shingo INADA 2020-04-15 11:27:59 +09:00
parent 17c7e0b3ed
commit 2d67334cb4
1 changed files with 7 additions and 2 deletions

View File

@ -283,6 +283,10 @@ static int modem_sched_func(int tag, int cycles, int jitter)
#endif
if (connected_time == 0)
connected_time = sh4_sched_now64();
callback_cycles = SH4_MAIN_CLOCK / 1000000 * 238; // 238 us
modem_regs.reg1e.TDBE = 1;
if (!modem_regs.reg1e.RDBF)
{
int c = read_pppd();
@ -298,10 +302,11 @@ static int modem_sched_func(int tag, int cycles, int jitter)
if (modem_regs.reg04.FIFOEN)
SET_STATUS_BIT(0x0c, modem_regs.reg0c.RXFNE, 1);
SET_STATUS_BIT(0x01, modem_regs.reg01.RXHF, 1);
// Set small value to receive following data quickly.
callback_cycles = SH4_MAIN_CLOCK / 1000000 * 62; // 62 us
}
}
modem_regs.reg1e.TDBE = 1;
callback_cycles = SH4_MAIN_CLOCK / 1000000 * 238; // 238 us
break;