FreeCalypso > hg > fc-magnetite
changeset 508:61f878c011b0
pseudo-modem keepalive: poll interval reduced to 5 s on C1xx and 10 s for USB
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 25 Jun 2018 06:20:23 +0000 |
parents | 0582d1267e16 |
children | 3992869d41ad |
files | src/cs/riviera/rvt/rvt_task.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cs/riviera/rvt/rvt_task.c Mon Jun 25 05:34:57 2018 +0000 +++ b/src/cs/riviera/rvt/rvt_task.c Mon Jun 25 06:20:23 2018 +0000 @@ -42,7 +42,13 @@ extern NU_HISR TI_rcv_HISR; /* Time (in milliseconds) between two consecutive 'System Time' messages */ +#ifdef PSEUDO_MODEM_USB +#define RVT_ALIVE_POLLING_TIME (RVF_MS_TO_TICKS (10000)) +#elif defined(PSEUDO_MODEM_KEEPALIVE) +#define RVT_ALIVE_POLLING_TIME (RVF_MS_TO_TICKS (5000)) +#else #define RVT_ALIVE_POLLING_TIME (RVF_MS_TO_TICKS (20000)) +#endif #define RVT_WAIT_FOR_HEADER (1) #define RVT_WAIT_FOR_DATA (2)