]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
bearable parameters set
authorJan Dolezal <pm.jenik@gmail.com>
Tue, 13 Aug 2013 17:07:26 +0000 (19:07 +0200)
committerJan Dolezal <pm.jenik@gmail.com>
Tue, 13 Aug 2013 17:07:26 +0000 (19:07 +0200)
src/arch/sys_arch.c
src/include/arch/lwipopts.h

index 489a987d30b617a05f47492742902a01b844134b..2a1fcac5370c9246d9457b871b7b2cb24b2a5eb0 100644 (file)
@@ -131,7 +131,7 @@ err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg)
                return ERR_MEM;
        return ERR_OK;
 }
-/* TODO: message which arrives may be NULL */
+/* message which arrives may be NULL */
 /* blocks the thread until a message arrives in the mailbox or timeout expires */
 u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
 {
index 1345ed4731cb66e4b17cea2ddefabcff359780bc..3261a9cc2e9c5884930a49304909c6517877cc56 100644 (file)
 **                          Memory Options
 *****************************************************************************/
 #define MEM_ALIGNMENT                   4 /* dflt 1 */
-#define MEM_SIZE                        1600 // (30 * 1024) /* 30K */ /* dflt 1600 */
-#define MEMP_NUM_PBUF                   16 // 48 /* dflt 16 */
-#define MEMP_NUM_TCP_PCB                5 // 16 /* dflt 5 */
-#define PBUF_POOL_SIZE                  16 // 96 /* dflt 16 */
+#define MEM_SIZE                        (30 * 1024) /* 30K */ /* dflt 1600 */
+#define MEMP_NUM_PBUF                   48 /* dflt 16 */
+#define MEMP_NUM_TCP_PCB                16 /* dflt 5 */
+#define PBUF_POOL_SIZE                  96 /* dflt 16 */
 
 /*****************************************************************************
 **                           IP Options
 /*****************************************************************************
 **                           TCP  Options
 *****************************************************************************/
-#define TCP_WND                         2048 // 4096   /* default is 2048 */
-#define TCP_MSS                         128 // 1500        /* default is 128 */
+#define TCP_WND                         4096   /* default is 2048 */
+#define TCP_MSS                         1500        /* default is 128 */
 #define TCP_SND_BUF                     (4 * TCP_MSS)
 
 /*****************************************************************************
 *****************************************************************************/
 #define LWIP_SOCKET                     0           /* default is 1 */
 
-#define LWIP_SO_RCVTIMEO                0           /* enable receive timeout; default is 0 */
+#define LWIP_SO_RCVTIMEO                1           /* enable receive timeout; default is 0 */
 
 /*****************************************************************************
 **                          Debugging options