Skip to content

Commit 9b26677

Browse files
author
pchiacha
authored
Defined variables used to detect slow/fast network
1 parent a9adef4 commit 9b26677

File tree

1 file changed

+3
-0
lines changed
  • Tekdaqc_Libraries_Firmware/lwIP/src/include/lwip

1 file changed

+3
-0
lines changed

Tekdaqc_Libraries_Firmware/lwIP/src/include/lwip/tcp.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ err_t tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx);
357357

358358
err_t tcp_write (struct tcp_pcb *pcb, const void *dataptr, u16_t len,
359359
u8_t apiflags);
360+
361+
#define SLOW_DIGI_SAMPLE 1000000 //1 second - digital sampling rate
362+
#define FAST_NET 5000000 //5 seconds - slow network timeout
360363

361364
void tcp_setprio (struct tcp_pcb *pcb, u8_t prio);
362365

0 commit comments

Comments
 (0)